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

Re: git diff across submodules

From
Jens Lehmann <jens.lehmann@web.de>
Date
Sep 18, 2012, 19:02 UTC
Message-ID
<5058C53B.5040401@web.de>
In-Reply-To
<1347937959.96154.YahooMailClassic@web39403.mail.mud.yahoo.com>
Am 18.09.2012 05:12, schrieb Kenny Simpson:
>   Is there any nice way to get a diff and/or diffstat of both a project and its submodules between two revisions of the main project?
> 
> Something like 'git diff --stat tag_a tag_b' but also including the diffstat on the submodule from the revision tied to in tag_a to the revision tied to tag_b.  A few shell backflips will do it, but this seems like I'm missing something.

Unfortunately that isn't possible yet, "git diff" still has to learn the --recurse-submodules option. And as far as I know, nobody is currently working on that.

Previous: Kenny SimpsonNext: Junio C Hamano
Message 2 of 6 in “git diff across submodules”
  1. Kenny SimpsonSep 18, 2012
  2. Jens LehmannSep 18, 2012
  3. Junio C HamanoSep 18, 2012
  4. Junio C HamanoSep 19, 2012
  5. Jens LehmannSep 20, 2012
  6. Junio C HamanoSep 20, 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.