git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “Supporting `git add -a <exclude submodules>`”
  1. Joanna WangSep 28, 2023
  2. Junio C HamanoSep 28, 2023
  3. Junio C HamanoSep 28, 2023
  4. Junio C HamanoSep 28, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.