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

`git commit -a` stages ignored submodules?

From
Sergey Sharybin <sergey.vfx@gmail.com>
Date
Nov 10, 2017, 10:34 UTC
Message-ID
<CAErtv26OrSVch=X8pi1Yf3s79B8SKD6fqfxhsEyMtt8B=TaqMg@mail.gmail.com>
Hello everyone,

There seems to be a difference how Git 2.15.0 handles submodules in comparison with 2.14.2.

In Git 2.14.2 `git commit -a` will not stage submodules which has `ignore = all` set in their .gitmodule section. However, in Git 2.15.0 `git commit -a` will stage all submodules no matter what their "ignore" setting is set to, and also no matter if submodule path is in .gitignore.

Didn't see anything explicit about this in release logs. Is it an expected new behavior?It is till possible to keep `git commit -a` to ignore submodules which are configured to be ignored?

-- 
With best regards, Sergey Sharybin
Message 1 of 1 in “`git commit -a` stages ignored submodules?”
  1. Sergey SharybinNov 10, 2017

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.