aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/git/test-gitcfg.sh
AgeCommit message (Collapse)AuthorFilesLines
8 daysfix(git): refuse duplicate values, show list errors, Escape on AddDanilo M.1-0/+19
Review findings. With a key holding the same value twice, --fixed-value --replace-all rewrote both and merged two rows into one, and --unset failed on both; gitcfg now counts the matches and refuses anything but exactly one, pointing at the editor. A file git cannot parse made list print nothing, which the page drew as an empty config; list now prints git's error as an error= line and the page shows it. Escape in the Add fields clears the typed text before it leaves the page, as a row's edit is undone first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 daysfeat(git): gitcfg, global git config through git itselfDanilo M.1-0/+77
list, set, add and unset over git config --global. --fixed-value lets a write touch one value of a multi-valued key. set and unset check the old value is still there first: --replace-all with no match appends and exits 0, and the file may have changed in an editor since the page read it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>