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

Re: [PATCH v2] Introduce new configuation option to override committer information

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 11, 2011, 14:42 UTC
Message-ID
<201101111542.15185.trast@student.ethz.ch>
In-Reply-To
<20110109172431.GA7718@burratino>
Jonathan Nieder wrote:
Show 11 quoted lines
> Ramkumar Ramachandra wrote:
> 
> > The 'user.name' and 'user.email' configuration
> > options set both author and committer information. To solve this,
> > introduce 'user.committername' and 'user.committeremail' configuration
> > options to override committer name and email respectively.
> 
> Predictably, I don't like this idea at all.  How would we explain this
> to a new user that is reading over gitconfig(5) for the first time?
> It makes the semantics of the committer and author name (that are mostly
> meant for giving credit and a contact address) much more murky.

Well, now that I'm rethinking it, the weird thing is that it does not override in the way that the user intuitively might expect.

Assume we also had user.authoremail for completeness, and you do
  git config --global user.authoremail author@example.com
  git config --global user.committeremail committer@example.com
  git config user.email user@example.com

Probably the user would expect this to result in a uniform user@example.com identity for the current repo, but I don't think we can twist it that way with the current config infrastructure. The obvious option of having user.{author,committer}* override the more generic user.* would be contrary to that intuition.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Ramkumar RamachandraNext: Junio C Hamano
Message 14 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.