Fwd: Re: feature request: user email config per domain

2017-02-23 Thread Igor Djordjevic
Forwarding a message that ended on my end only, probably by accident. Forwarded Message Subject: Re: feature request: user email config per domain Date: Thu, 23 Feb 2017 13:32:56 +0530 From: Tushar Kapila To: Igor Djordjevic BugA Hello All, > I'd much rather see s

Re: feature request: user email config per domain

2017-02-22 Thread Igor Djordjevic BugA
Hi Tushar, On 22/02/2017 14:12, Tushar Kapila wrote: > So when remote URL has github.com push as tgkp...@search.com but for > testing.abc.doman:8080 use tgkp...@test.xyz.com ? I`m not sure if this is sensible, as authorship information is baked into the commit at the time of committing, which (u

Re: feature request: user email config per domain

2017-02-22 Thread Jeff King
On Wed, Feb 22, 2017 at 06:42:02PM +0530, Tushar Kapila wrote: > Feature request : can we have a config for email per repo domain ? > Something like: > > git config --global domain.user.email tgkp...@test.xyz.com > testing.abc.doman:8080 > > git config --global domain.user.email tgkp...@xyz.com

Re: feature request: user email config per domain

2017-02-22 Thread Andrew Ardill
On 23 February 2017 at 00:12, Tushar Kapila wrote: > I can set my email via: > git config --global user.email tgkp...@xyz.dom > > this is dangerous when I use this my office or in a multi repository > provider environment where my email is different for a few (like > tgkp...@search.com for github

Re: feature request: user email config per domain

2017-02-22 Thread Pranit Bauva
Hey Tushar, When you run `git config --global user.email a...@xyz.com` it writes out this setting in ~/.gitconfig which is then considered to be "global" ie. this same email will be used for every repo, but ... You can always override this. Let's say there is a repo named "foo" in which you want

feature request: user email config per domain

2017-02-22 Thread Tushar Kapila
I can set my email via: git config --global user.email tgkp...@xyz.dom this is dangerous when I use this my office or in a multi repository provider environment where my email is different for a few (like tgkp...@search.com for github and tus...@mycompany.com for my company private repo). I know I