From: John Szakmeister Date: Wed, 24 Oct 2012 00:46:47 GMT Subject: Re: The config include mechanism doesn't allow for overwriting Message-ID: In-Reply-To: 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 > > I think that it would be better if the config mechanism just silently > overwrote keys that clobbered earlier keys like your patch does. > > But in addition can we simplify things for the consumers of > "git-{config,var} -l" by only printing: > > foo.bar=three > > Or are there too many variables like "include.path" that can > legitimately appear more than once. I frequently use pushurl in my remotes to push my master branch both to the original repo and my forked version. I find it very helpful in my workflow, and would hate to lose that. That said, I do like the idea of having a config file and the ability to override some of the variables. -John