gitgitgadget / git

GitGitGadget's Git fork. Open Pull Requests here to submit them to the Git mailing list
https://gitgitgadget.github.io/
Other
214 stars 134 forks source link

Add another set of GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL} with lower priorities #234

Open dscho opened 5 years ago

dscho commented 5 years ago

It would be nice if git supported a way to do override the fallback when neither the config nor the current environment variables specify the author/committer name.

Copy-munged from: https://public-inbox.org/git/87in9ucsbb.fsf@evledraar.gmail.com/

webstech commented 5 years ago

Looking at implementing in fmtident in ident.c. Are env vars GIT{AUTHOR,COMMITTER}_{NAME,EMAIL}_DEFAULT acceptable?

Seems like the doc change could be bigger than the code change.

Suggestions on where to add test cases would be appreciated.

dscho commented 5 years ago

Looking at implementing in fmtident in ident.c. Are env vars GIT{AUTHOR,COMMITTER}_{NAME,EMAIL}_DEFAULT acceptable?

That would be a good question to ask in reply to https://public-inbox.org/git/87in9ucsbb.fsf@evledraar.gmail.com/ (see instructions how to reply on the bottom of that page, or our wiki page).