diff options
Diffstat (limited to 'docs/superpowers/specs')
| -rw-r--r-- | docs/superpowers/specs/2026-10-16-git-config-design.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/superpowers/specs/2026-10-16-git-config-design.md b/docs/superpowers/specs/2026-10-16-git-config-design.md index e9975fc..4d463d7 100644 --- a/docs/superpowers/specs/2026-10-16-git-config-design.md +++ b/docs/superpowers/specs/2026-10-16-git-config-design.md @@ -39,7 +39,9 @@ reimplement git's quoting. - `add <key> <value>`: `git config --global --add <key> <value>`. - `unset <key> <value>`: `git config --global --fixed-value --unset <key> <value>`. Removes only that value. - - git's stderr passes through and its exit status is the helper's. + - A write prints nothing on success; on failure, git's message on stdout + (for the page) and exit 1. `set` and `unset` first check the old value + is still there: `--replace-all` with no match appends and exits 0. - `Git.js` (`.pragma library`): `parse(text)` turns the `-z` output into `[{section, key, value}]` in file order, `section` being everything before the last dot (`color.branch.remote` is section `color.branch`). Tested by |
