From: Jeff King Date: Mon, 15 Feb 2016 21:40:49 GMT Subject: Re: [PATCH v4 3/3] config: add '--show-origin' option to print the origin of a config value Message-ID: <20160215214049.GA10094@sigill.intra.peff.net> In-Reply-To: <56C244D7.1030503@ramsayjones.plus.com> On Mon, Feb 15, 2016 at 09:36:23PM +0000, Ramsay Jones wrote: > > +test_expect_success '--show-origin stdin' ' > > + cat >expect <<-\EOF && > > + stdin: user.custom=true > > So, as with the previous patch, I think this should be: > file: user.custom=true That's ambiguous with a file named "", which was the point of having the two separate prefixes in the first place. I think in practice we _could_ get by with an ambiguous output (it's not like "" is a common filename), but that was discussed earlier in the thread, and Lars decided to go for something unambiguous. That doesn't necessarily have to bleed over into the error messages, though (which could continue to use "" if we want to put in a little extra code to covering the cases separately. -Peff