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

Re: Commit ID of a branch

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 16, 2010, 21:50 UTC
Message-ID
<AANLkTik0FFHCdMTa_MDpdg-df2fAkpKgyVyRUCuhZ5=c@mail.gmail.com>
In-Reply-To
<loom.20100816T231539-211@post.gmane.org>
On Mon, Aug 16, 2010 at 21:19, Guillermo <guillermog@tricuspide.com> wrote:
Show 14 quoted lines
> Hello,
>
> I want to write a script what checks in all my projects which is the submodule
> commit that is registered in every git repo.
>
> Lets say we have the following structure:
>
> project1
> - submodule1
> project2
> - submodule1
>
> I want to find out what file within the .git dir of every project contains the
> proper submodule Commit ID that should be checkout with git submodule update.
That ID is stored in a tree object, See e.g. git-ls-tree for how to get it.
Previous: GuillermoNext: Chris Packham
Message 2 of 5 in “Commit ID of a branch”
  1. GuillermoAug 16, 2010
  2. Ævar Arnfjörð BjarmasonAug 16, 2010
  3. Chris PackhamAug 16, 2010
  4. Guillermo GonzalezAug 17, 2010
  5. Guillermo GonzalezAug 16, 2010

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.