Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitconfig add vs set #28

Open
delanym opened this issue Sep 13, 2021 · 1 comment
Open

gitconfig add vs set #28

delanym opened this issue Sep 13, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@delanym
Copy link

delanym commented Sep 13, 2021

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
Copy link
Owner

Hi there, thank you for the suggestion. This definitely sounds like it needs to go in.

@rudikershaw rudikershaw added the enhancement New feature or request label Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants