Skip to content

gitconfig add vs set #28

Open
Open
@delanym

Description

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>

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions