* Does 'git config' accept the '--remove' option?
@ 2017-06-21 18:12 Kaartic Sivaraam
2017-06-21 18:34 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Kaartic Sivaraam @ 2017-06-21 18:12 UTC (permalink / raw)
To: git
Hello all,
I recently noticed that when I run 'git config' with the '--remove
<non_existing_section>' I get a warning that section doesn't exist.
When I scrolled through the man page of git-config I could see any
mention about the '--remove' option. I only see that there is a '
--remove-section' option. Sample output,
> $ git config --remove test
> fatal: No such section!
> $ git config --remove-section test
> fatal: No such section!
Is this a bug (or) is the documentation stale ?
--
Regards,
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does 'git config' accept the '--remove' option?
2017-06-21 18:12 Does 'git config' accept the '--remove' option? Kaartic Sivaraam
@ 2017-06-21 18:34 ` Junio C Hamano
2017-06-21 18:43 ` Kaartic Sivaraam
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2017-06-21 18:34 UTC (permalink / raw)
To: Kaartic Sivaraam; +Cc: git
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:
> I recently noticed that when I run 'git config' with the '--remove
> <non_existing_section>' I get a warning that section doesn't exist.
> When I scrolled through the man page of git-config I could see any
> mention about the '--remove' option. I only see that there is a '
> --remove-section' option. Sample output,
>
>> $ git config --remove test
>> fatal: No such section!
>> $ git config --remove-section test
>> fatal: No such section!
>
> Is this a bug (or) is the documentation stale ?
Neither, I would say. I think that you would get exactly the same
behaviour from
$ git config --remo test
$ git config --remove-sec test
These are merely "unique prefix can be abbreviated in option names"
kicking in, I think.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does 'git config' accept the '--remove' option?
2017-06-21 18:34 ` Junio C Hamano
@ 2017-06-21 18:43 ` Kaartic Sivaraam
0 siblings, 0 replies; 3+ messages in thread
From: Kaartic Sivaraam @ 2017-06-21 18:43 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On Wed, 2017-06-21 at 11:34 -0700, Junio C Hamano wrote:
> Neither, I would say. I think that you would get exactly the same
> behaviour from
>
> $ git config --remo test
> $ git config --remove-sec test
>
> These are merely "unique prefix can be abbreviated in option names"
> kicking in, I think.
>
Interesting. This is the first time I'm hearing this.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-21 18:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-21 18:12 Does 'git config' accept the '--remove' option? Kaartic Sivaraam
2017-06-21 18:34 ` Junio C Hamano
2017-06-21 18:43 ` Kaartic Sivaraam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).