Re: The config include mechanism doesn't allow for overwriting

2012-10-23 Thread Jeff King
On Tue, Oct 23, 2012 at 08:46:47PM -0400, John Szakmeister wrote: > On Tue, Oct 23, 2012 at 10:13 AM, Ævar Arnfjörð Bjarmason > wrote: > [snip] > > And git config --get foo.bar will give you: > > > > $ git config -f /tmp/test --get foo.bar > > one > > error: More than one value for th

Re: The config include mechanism doesn't allow for overwriting

2012-10-23 Thread John Szakmeister
On Tue, Oct 23, 2012 at 10:13 AM, Ævar Arnfjörð Bjarmason wrote: [snip] > And git config --get foo.bar will give you: > > $ git config -f /tmp/test --get foo.bar > one > error: More than one value for the key foo.bar: two > error: More than one value for the key foo.bar: three > >

Re: The config include mechanism doesn't allow for overwriting

2012-10-23 Thread Ævar Arnfjörð Bjarmason
On Mon, Oct 22, 2012 at 11:15 PM, Jeff King wrote: > On Mon, Oct 22, 2012 at 05:55:00PM +0200, Ævar Arnfjörð Bjarmason wrote: > >> I was hoping to write something like this: >> >> [user] >> name = Luser >> email = some-defa...@example.com >> [include] >> path = ~/.g

Re: The config include mechanism doesn't allow for overwriting

2012-10-22 Thread Jeff King
On Mon, Oct 22, 2012 at 05:55:00PM +0200, Ævar Arnfjörð Bjarmason wrote: > I was hoping to write something like this: > > [user] > name = Luser > email = some-defa...@example.com > [include] > path = ~/.gitconfig.d/user-email > > Where that file would contain: >