git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Wish: make commiter email address configurable per-repo

From
SKStephen Kelly <steveire@gmail.com>
Date
Jan 7, 2011, 18:01 UTC
Message-ID
<ig7kej$j4p$1@dough.gmane.org>
In-Reply-To
<201101071443.51574.trast@student.ethz.ch>
Thomas Rast wrote:
Show 34 quoted lines
> Stephen Kelly wrote:
>> Thomas Rast wrote:
>> > See user.email in git-config(1).  Most people set it globally, as in
>> > 
>> >   git config --global user.email "author@example.com"
>> > 
>> > but there's nothing stopping you from doing
>> > 
>> >   git config user.email "alias@example.com"
>> > 
>> > to set it on a per-repo level.  (Or just edit .git/config, of course.)
>> 
>> Doesn't this set both the author and the committer?
> 
> Oh, I see.  Yes, it does.
>
> Stephen Kelly wrote earlier:
>> If my email address that I use for committing is not the same as that
>> configured in the bugzilla, the automated bug closing does not work.
> 
> 
> Probably if KDE has this use-case then that means we need to implement
> it as a feature on size alone, but I briefly looked into the code and
> it requires a bit more restructuring than I'm willing to do over
> coffee.
> 
> I think as a stop-gap measure you'll have to use an alias such as
> 
>   ci = commit --author="your usual <author>"
> 
> along with a local setting for user.email to force them to be
> different.  (Note that this will re-set the author when saying 'git
> ci --amend' on other people's commits!)
> 
Thanks for looking into it!

I'll consider the alias you suggest. Git command aliases can be configured per repo, right?

Is there a bug tracker used for git so that this issue doesn't get lost?
All the best,
Steve.
Previous: Thomas RastNext: Erik Faye-Lund
Message 5 of 19 in “Wish: make commiter email address configurable per-repo”
  1. Stephen KellyJan 7, 2011
  2. Thomas RastJan 7, 2011
  3. Stephen KellyJan 7, 2011
  4. Thomas RastJan 7, 2011
  5. Stephen KellyJan 7, 2011
  6. Erik Faye-LundJan 7, 2011
  7. Junio C HamanoJan 20, 2011
  8. Introduce new configuation option to override committer informationRamkumar Ramachandra, Jan 8, 2011
  9. Stephen KellyJan 8, 2011
  10. Introduce new configuation option to override committer informationRamkumar Ramachandra, Jan 9, 2011
  11. Jonathan NiederJan 9, 2011
  12. Stephen KellyJan 11, 2011
  13. Ramkumar RamachandraJan 11, 2011
  14. Thomas RastJan 11, 2011
  15. Junio C HamanoJan 20, 2011
  16. Stephen KellyJan 20, 2011
  17. Thomas RastJan 20, 2011
  18. Stephen KellyJan 20, 2011
  19. Jonathan NiederJan 20, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.