Re: [PATCH v2 1/2] config: add options to list only variable names
- From
Jeff King <peff@peff.net>
- Date
- May 29, 2015, 11:39 UTC
- Message-ID
- <20150529113942.GA30503@peff.net>
- In-Reply-To
- <CAP8UFD2Zhomk+ryRfZFWAVs0yZeXUfpBXTo51Cm=Lj1QbkRbmA@mail.gmail.com>
On Fri, May 29, 2015 at 01:34:50PM +0200, Christian Couder wrote:
Show 12 quoted lines
> >> +--get-name-regexp:: > >> + Like --get-regexp, but shows only matching variable names, not its > >> + values. > > > > which makes it clear why it is needed. The distinction is purely > > about the output, i.e. the values are omitted. > > If the distinction is purely about the output, then it seems logical > to add only an output related option, like the --name-only option I > suggested, and not 2 new modes (--get-name-regexp and --list-names). > > Doesn't it look like git config already has too many modes?
Yeah, I'd agree that is a simpler way to look at it, and avoiding extra modes is probably a good thing.
-Peff