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

Re: Linking multiple Git repositories for version tracking

From
Michael Witten <mfwitten@gmail.com>
Date
Jan 9, 2010, 05:25 UTC
Message-ID
<b4087cc51001082125h37fc43f0t5f2a9809f558388c@mail.gmail.com>
In-Reply-To
<op.u574cwxqn3qeew@klee>
On Fri, Jan 8, 2010 at 11:03 AM, James Beck <james@jmbeck.com> wrote:
Show 7 quoted lines
> I'm starting to move into alpha with this code, so I really need to have a
> system that keeps track of compatible firmware versions. The best I can
> come up with is a plain text file (or Excel spreadsheet) that lists the
> overall firmware version, and the Git hash for each individual project.
> That way, if I want to load up a particular firmware version, I can
> checkout each hash for that version. Seems foolproof, but not terribly
> easy, and somewhat annoying.

The Xorg project is currently composed of 197 separate `modules', and I believe that (practically) each has its own Git repo.

Their solution seems to be the exact same as yours, though it involves translating between official release numbers and commits from what I recall, all of which uses this hand-written list:

    http://cgit.freedesktop.org/xorg/util/modular/tree/module-list.txt

So, perhaps you just need to write a small script to do the checkouts automatically for you.

Also, you could use Git tags rather than raw Git hashes. If you have "releases", you could just make the same tag name in each Git repo, so that checking out any particular "release" just amounts to having a script loop through the repos and checkout the necesarry commit using the associated tag. In fact, I suggested this to the Xorg guys not long ago:

    http://www.mail-archive.com/xorg-devel@lists.x.org/msg03037.html
See:
    http://cgit.freedesktop.org/xorg/util/modular/tree/
    http://www.x.org/wiki/Development/Documentation/ReleaseHOWTO
Previous: Avery PennarunNext: Christoph Jahn
Message 3 of 4 in “Linking multiple Git repositories for version tracking”
  1. James BeckJan 8, 2010
  2. Avery PennarunJan 8, 2010
  3. Michael WittenJan 9, 2010
  4. Christoph JahnJan 10, 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.