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

git-status does not propagate -uall to submodules

From
Thomas Rast <trast@inf.ethz.ch>
Date
Feb 17, 2012, 09:18 UTC
Message-ID
<874nupq0la.fsf@thomas.inf.ethz.ch>
Hi,

While helping with the submodule display on #git I noticed that if you have a submodule with status.showuntrackedfiles=no, and run 'git status -uall' from the superproject, then this does not propagate into the submodule's status. In code:

  $ (cd bar && git config status.showuntrackedfiles)                  
  no                                                                                                 
  $ git ls-files -s                                                   
  100644 926c01b7259c489a422442a8dc5cb5ea7c58f60c 0       .gitmodules                                
  160000 eb5af46e1a938d064c9f7bae9561013654a43316 0       bar                                        
  $ (cd bar && git status -s -unormal)
  ?? otheruntracked                                                                                  
  ?? untracked
  $ git status
  # On branch master
  nothing to commit (working directory clean)

So far that's expected; after all the submodule is configured not to display untracked files. But with -uall:

  $ git status -uall
  # On branch master
  nothing to commit (working directory clean)

Shouldn't the -uall propagate, since the user is explicitly asking for it? That is, the display should summarize what git-status *with the same arguments* would show inside the submodules?

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Next: Jens Lehmann
Message 1 of 2 in “git-status does not propagate -uall to submodules”
  1. Thomas RastFeb 17, 2012
  2. Jens LehmannFeb 17, 2012

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.