Re: [PATCHv3 1/2] config: add '--names-only' option to list only variable names

2015-08-12 Thread Junio C Hamano
SZEDER Gábor writes: >> >> s/becase/because/; > > OK. > ... >> I agree with Peff that "--names-only" has a subtle difference with >> an existing and well known subcommand option and it would be a bit >> irritating to remember which options is for which command. > > OK. > ... The topic is now in

Re: [PATCHv3 1/2] config: add '--names-only' option to list only variable names

2015-08-12 Thread SZEDER Gábor
Quoting Junio C Hamano : SZEDER Gábor writes: 'git config' can only show values or name-value pairs, so if a shell script needs the names of set config variables it has to run 'git config --list' or '--get-regexp' and parse the output to separate config variable names from their values. How

Re: [PATCHv3 1/2] config: add '--names-only' option to list only variable names

2015-08-10 Thread Junio C Hamano
SZEDER Gábor writes: > 'git config' can only show values or name-value pairs, so if a shell > script needs the names of set config variables it has to run 'git config > --list' or '--get-regexp' and parse the output to separate config > variable names from their values. However, such a parsing c

Re: [PATCHv3 1/2] config: add '--names-only' option to list only variable names

2015-08-10 Thread Jeff King
On Mon, Aug 10, 2015 at 11:46:06AM +0200, SZEDER Gábor wrote: > 'git config' can only show values or name-value pairs, so if a shell > script needs the names of set config variables it has to run 'git config > --list' or '--get-regexp' and parse the output to separate config > variable names from

[PATCHv3 1/2] config: add '--names-only' option to list only variable names

2015-08-10 Thread SZEDER Gábor
'git config' can only show values or name-value pairs, so if a shell script needs the names of set config variables it has to run 'git config --list' or '--get-regexp' and parse the output to separate config variable names from their values. However, such a parsing can't cope with multi-line value