From: Sebastian Schuberth Date: Wed, 10 Feb 2016 15:33:11 GMT Subject: Re: [PATCH v2] config: add '--sources' option to print the source of a config value Message-ID: In-Reply-To: <20160210125429.GA8078@sigill.intra.peff.net> On Wed, Feb 10, 2016 at 1:54 PM, Jeff King wrote: >> +--sources:: >> + Augment the output of all queried config options with the >> + source type (file, stdin, blob, cmd) and the actual source >> + (config file path, ref, or blob id if applicable). > > I think something like "cmdline" might be more descriptive than "cmd". I agree "cmdline" is better than "cmd". > So the format here is like: > > file\t\t > blob\t\t > stdin\t\t > cmd\t\t > > where two of the prefixes have nothing in the second slot. I expected > something more like: > > file:\t > blob:\t > stdin\t > cmd\t > > with a single delimited slot for the source, which can then be broken > down further if desired. I can't think of any reason to prefer one over > the other rather than personal preference, though. They can both be > parsed unambiguously. I also would have expected sopme like the latter, except that I'd also expect a colon after "stdin" and "cmd" (or "cmdline", as said above). I.e. the colon should be part of the prefix to mark it as such. -- Sebastian Schuberth