All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Does 'git config' accept the '--remove' option?
Date: Wed, 21 Jun 2017 11:34:51 -0700	[thread overview]
Message-ID: <xmqqzid1p4tw.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <1498068738.32360.7.camel@gmail.com> (Kaartic Sivaraam's message of "Wed, 21 Jun 2017 23:42:18 +0530")

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.


    

  reply	other threads:[~2017-06-21 18:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21 18:12 Does 'git config' accept the '--remove' option? Kaartic Sivaraam
2017-06-21 18:34 ` Junio C Hamano [this message]
2017-06-21 18:43   ` Kaartic Sivaraam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqzid1p4tw.fsf@gitster.mtv.corp.google.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=kaarticsivaraam91196@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.