From 02f7797aaf6ab9e5c4a2a89ab0efb33b43349e90 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 16 Oct 2026 11:20:03 +0200 Subject: docs(git): the git config page, and replace-all appending on no match Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 0e13911..c70c98d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -346,6 +346,11 @@ changing that component. The ones that generalise: accented letter reads `s "Do\303\250r"`-style, which no shell builtin decodes. `busctl --json=short` returns real UTF-8; `userctl` pipes it through `jq -r .data`. +- **`git config --replace-all` with an unmatched value appends.** With + `--fixed-value` and an old value no longer in the file, git adds the new + value and exits 0, so a stale edit duplicates a key instead of failing; + `--unset` of a missing value exits 5 with no message. `gitcfg` checks + with `--get-all` first. ## Theme -- cgit v1.2.3