Re: [PATCH RFC 1/3] add: add new --exclude option to git add
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 15, 2015, 20:09 UTC
- Message-ID
- <xmqqtwxmt43h.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAPig+cR52GKNZkgsytUrb0m3wwY2T68cxjNB_OV+uLxvQUh=VA@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
> The commit message is missing the important justification for why this > new option is desirable, and why only git-add needs it.
I think that is a very good point. I actually do not see why this option is ever needed, in a modern world that has the negative pathspec magic.
Is there a reason why this is undesiable
$ git add -- \*.c ':!secret.c'
and has to be spelled as
$ git add --exclude=secret.c -- \*.c
I do not see why...