gitconfig add vs set
delanym opened this issue · 1 comments
delanym commented
I was testing out a way to use git notes to maintain a changelog (https://dev.to/leehambley/effortlessly-maintain-a-high-quality-change-log-with-git-notes-4bm5)
So I used the plugin to set
<remote.origin.fetch>+refs/notes/changelog:refs/notes/changelog</remote.origin.fetch>
But this overwrote the default
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
So I need an implementation of
git config [<file-option>] [--type=<type>] --add name value
Instead of
git config [<file-option>] [--type=<type>] [--fixed-value] [--show-origin] [--show-scope] [-z|--null] name [value [value-pattern]]
Maybe it could be done like this:
<remote.origin.fetch add="">+refs/notes/changelog:refs/notes/changelog</remote.origin.fetch>
rudikershaw commented
Hi there, thank you for the suggestion. This definitely sounds like it needs to go in.