Re: Supporting `git add -a <exclude submodules>`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 28, 2023, 18:16 UTC
- Message-ID
- <xmqqmsx6jh8i.fsf@gitster.g>
- In-Reply-To
- <xmqqsf6yjhhm.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
>> (It looks like `git commit -a` does not work with pathspec. > > You should be able to do something like > > $ git commit . ':(exclude)t/' > > I think.
Correction. You would need the "-i(nclude)" option if you do the above, as the default is "-o(nly)", which will deliberately ignore what has been added to the index.