Re: Wish: make commiter email address configurable per-repo
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jan 7, 2011, 13:43 UTC
- Message-ID
- <201101071443.51574.trast@student.ethz.ch>
- In-Reply-To
- <ig7449$lbg$2@dough.gmane.org>
Stephen Kelly wrote:
Show 12 quoted lines
> 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?
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.
Oh, I see. Yes, it does.
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!)
--
Thomas Rast
trast@{inf,student}.ethz.ch