Re: git should not use a default user.email config value
- From
Andrew Ardill <andrew.ardill@gmail.com>
- Date
- Aug 12, 2013, 13:01 UTC
- Message-ID
- <CAH5451=PK15n4U-3Mb_TLevF3-r+vrpk1PXD15Oo1A2KFc5i_w@mail.gmail.com>
- In-Reply-To
- <20130812123921.GA16088@sigill.intra.peff.net>
On 12 August 2013 22:39, Jeff King <peff@peff.net> wrote:
Show 6 quoted lines
> We could do something like the patch below, which allows: > > $ git config --global include./magic/.path .gitconfig-magic > > to read ~/.gitconfig-magic only when we are in a repository with a > directory component "/magic/".
Thanks, this looks great! I'll have a play with it tomorrow.
Would locally configured config options override this one? From a quick read of the patch there doesn't look like there is a way of turning this off for a specific repository, but perhaps that is unnecessary. I think after a bit of use the edge cases will be a bit clearer.
Again thanks, this will scratch an itch I didn't even realise I had.
Regards,
Andrew Ardill