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

Re: RFC/RFH submodule handling in big setups

From
Finn Arne Gangstad <finnag@pvv.org>
Date
Jan 7, 2008, 21:07 UTC
Message-ID
<20080107210735.GC19728@pvv.org>
In-Reply-To
<320075ff0801071208u1900bf76q2f0dc9cb0dc4318b@mail.gmail.com>
On Mon, Jan 07, 2008 at 08:08:38PM +0000, Nigel Magnay wrote:
> Do you currently use svn?
Currently we use CVS. It hurts a bit.
Show 21 quoted lines
> This feels like the common technique of using svn:externals, where
> product1 has
> foo repo/foo/trunk
> os-abstraction-lib repo/os-abstraction-lib/trunk
> 
> product2 has
> os-abstraction-lib repo/os-abstraction-lib/trunk
> log-merger repos/log-merger/trunk
> 
> Where git (if I understand submodules correctly) can't do the above,
> because the links are to SHA1s rather than tags or names, so in svn
> terms it'd be something like
> os-abstraction-lib repo/os-abstraction-lib/trunk@xxx
> log-merger repos/log-merger/trunk@yyy
> 
> At first I thought the option (4) you suggest (Manually push all
> sub-modules to some new branch before pushing the  super-module) was
> going to be a pain - but actually I came to the conclusion it was
> actually better. In our svn world, commits to shared libraries (can)
> cause all hell to break loose - it'd actually be an advantage to have
> to promote changes into the supermodules (the products in our case).

With the way we envision using git, I don't think this is a problem. Each supermodule decides what version of the shared library it wants to use, and since git does not point to tags/branches in submodules but to sha1s, there is nothing you can do to a submodule that will cause any problems in a supermodule unless the supermodule decides to use a new version.

I think we'd be perfectly happy to use detached HEADs in all submodules, but there is no way to get that to work currently with push and fetch, so I'm looking for some alternative.

- Finn Arne
Previous: Nigel MagnayNext: Finn Arne Gangstad
Message 4 of 8 in “RFC/RFH submodule handling in big setups”
  1. Finn Arne GangstadJan 7, 2008
  2. Junio C HamanoJan 7, 2008
  3. Nigel MagnayJan 7, 2008
  4. Finn Arne GangstadJan 7, 2008
  5. Finn Arne GangstadJan 7, 2008
  6. Junio C HamanoJan 7, 2008
  7. Jan HudecJan 7, 2008
  8. Finn Arne GangstadJan 7, 2008

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.