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

How to get submodule information for a specific commit

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Oct 26, 2012, 10:05 UTC
Message-ID
<CAC9WiBidhir6S8VaiY3wFFo5Gs1mxJKi4cBTq3nQE_Mau9xApA@mail.gmail.com>
Hi,

I'd like to get information about the submodule commits used by a given super project commit.

The information I'm looking for is quite similar than the one you can get with "git submodule status" but for any revs not only the current head of the super project.

Someone on #git kindly suggested me to use git-ls-tree, but I'm wondering if an option or a new command to git-submodule could be added to achieve that.

Thanks
-- 
Francis
Message 1 of 1 in “How to get submodule information for a specific commit”
  1. Francis MoreauOct 26, 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.