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