{"thread":{"id":"46225","subject":"Does 'git config' accept the '--remove' option?","startedAt":"2017-06-21T18:12:36Z","lastAt":"2017-06-21T18:43:54Z","messageCount":3,"participants":["Kaartic Sivaraam","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"322830","messageId":"1498068738.32360.7.camel@gmail.com","threadId":"46225","inReplyTo":null,"subject":"Does 'git config' accept the '--remove' option?","fromName":"Kaartic Sivaraam","fromEmail":"kaarticsivaraam91196@gmail.com","sentAt":"2017-06-21T18:12:18Z","receivedAt":"2017-06-21T18:12:36Z","isPatch":false,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"Hello all,\t\n\nI recently noticed that when I run 'git config' with the '--remove\n<non_existing_section>' I get a warning that section doesn't exist.\nWhen I scrolled through the man page of git-config I could see any\nmention about the '--remove' option. I only see that there is a '\n--remove-section' option. Sample output,\n\n> $ git config --remove test\n> fatal: No such section!\n> $ git config --remove-section test\n> fatal: No such section!\n\nIs this a bug (or) is the documentation stale ?\n\n-- \n\nRegards,\nKaartic Sivaraam <kaarticsivaraam91196@gmail.com>\n"},{"id":"322836","messageId":"xmqqzid1p4tw.fsf@gitster.mtv.corp.google.com","threadId":"46225","inReplyTo":"1498068738.32360.7.camel@gmail.com","subject":"Re: Does 'git config' accept the '--remove' option?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-06-21T18:34:51Z","receivedAt":"2017-06-21T18:34:59Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:\n\n> I recently noticed that when I run 'git config' with the '--remove\n> <non_existing_section>' I get a warning that section doesn't exist.\n> When I scrolled through the man page of git-config I could see any\n> mention about the '--remove' option. I only see that there is a '\n> --remove-section' option. Sample output,\n>\n>> $ git config --remove test\n>> fatal: No such section!\n>> $ git config --remove-section test\n>> fatal: No such section!\n>\n> Is this a bug (or) is the documentation stale ?\n\nNeither, I would say.  I think that you would get exactly the same\nbehaviour from \n\n    $ git config --remo test\n    $ git config --remove-sec test\n\nThese are merely \"unique prefix can be abbreviated in option names\"\nkicking in, I think.\n\n\n    \n"},{"id":"322839","messageId":"1498070618.32360.15.camel@gmail.com","threadId":"46225","inReplyTo":"xmqqzid1p4tw.fsf@gitster.mtv.corp.google.com","subject":"Re: Does 'git config' accept the '--remove' option?","fromName":"Kaartic Sivaraam","fromEmail":"kaarticsivaraam91196@gmail.com","sentAt":"2017-06-21T18:43:38Z","receivedAt":"2017-06-21T18:43:54Z","isPatch":false,"sender":{"key":"kaartic.sivaraam@gmail.com","avatar":"https://avatars.githubusercontent.com/u/12448084?v=4"},"body":"\nOn Wed, 2017-06-21 at 11:34 -0700, Junio C Hamano wrote:\n> Neither, I would say.  I think that you would get exactly the same\n> behaviour from \n> \n>     $ git config --remo test\n>     $ git config --remove-sec test\n> \n> These are merely \"unique prefix can be abbreviated in option names\"\n> kicking in, I think.\n> \nInteresting. This is the first time I'm hearing this.\n\n"}]}