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

Re: git-status for submodules

From
CFChris Frey <cdfrey@foursquare.net>
Date
Nov 21, 2008, 21:56 UTC
Message-ID
<20081121215608.GA27049@foursquare.net>
In-Reply-To
<200811211627.10637.johan@herland.net>
On Fri, Nov 21, 2008 at 04:27:10PM +0100, Johan Herland wrote:
Show 10 quoted lines
> Chris' workflow is farily easily supported by running git-status within 
> each submodule, like this:
> 
> git submodule foreach "git status; true"
> 
> If the above is too cumbersome to type, one can easily wrap an alias 
> around it:
> 
> git config alias.substatus 'submodule foreach "git status; true"'
> git substatus
Fascinating. :-)  This is not yet released, I see, but thanks very much.

Looking at the git sources, submodule foreach doesn't seem to recurse, for the nested submodule case Junio mentioned. It's still a good start.

- Chris
Previous: Johan HerlandNext: Chris Frey
Message 4 of 6 in “git-status for submodules”
  1. Chris FreyNov 20, 2008
  2. Junio C HamanoNov 21, 2008
  3. Johan HerlandNov 21, 2008
  4. Chris FreyNov 21, 2008
  5. Chris FreyNov 21, 2008
  6. Junio C HamanoNov 22, 2008

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.