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

git submodule status never says “old commits”

From
UHUlrich HERRMANN <ulrich.herrmann@st.com>
Date
Aug 21, 2020, 12:14 UTC
Message-ID
<VE1PR10MB3374796F04367FA5DE25F921945B0@VE1PR10MB3374.EURPRD10.PROD.OUTLOOK.COM>
In-Reply-To
<VE1PR10MB33746C60D550BB11162F5E24945B0@VE1PR10MB3374.EURPRD10.PROD.OUTLOOK.COM>
Hi all,

I am now a user of git-submodules for quite some time. However I still haven’t figured out how to get better status/diff information. When the submodule is at a different version it always gives me "new commits" but never "old commits" even though I have checked out an older version inside the submodule. git diff gives me two different hashes which also don't give any directly readable information.  Git could check the ancestry graph to figure the relation of the two commits: child/parent, parent/child, common ancestor, etc. Or is there a feature / command line switch of git which I am missing?

Best Regards, Ulrich
Next: brian m. carlson
Message 1 of 3 in “git submodule status never says “old commits””
  1. Ulrich HERRMANNAug 21, 2020
  2. brian m. carlsonAug 22, 2020
  3. Ulrich HERRMANNOct 12, 2020

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.