From: Andrew Ardill Date: Tue, 13 Aug 2013 11:05:40 GMT Subject: Re: git should not use a default user.email config value Message-ID: In-Reply-To: <20130812154520.GA18215@sigill.intra.peff.net> On Mon, Aug 12, 2013 at 11:01:03PM +1000, Andrew Ardill wrote: >On 12 August 2013 22:39, Jeff King wrote: >> 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. I applied this on top of latest next (1da3ebde8999d07), and it worked perfectly for my use case. For what it's worth, it also passed the test suite! Would be great to see this, or something on the same theme, get into master. I'd be happy to review patches/write tests/write documentation if needed. Regards, Andrew Ardill