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

Re: git support for subprojects?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 13, 2007, 15:51 UTC
Message-ID
<20070313155127.GB18890@spearce.org>
In-Reply-To
<OFD596829F.8C32CA61-ON8625729D.004F66DC-8625729D.00501D41@BJSERVICES.COM>
Luke.Powell@bjservices.com wrote:
Show 6 quoted lines
> Say that I have projects A and B which both depend on another project Z. 
> Whenever I update one of those projects, I'd like to also update to the 
> latest version of Z in a subdirectory. Is there that kind of support for 
> these subprojects? If I'm not being clear, I'm talking about the kind of 
> support that is available in Subversion through svn:externals or something 
> analogous.

In the Git community the concept of a subproject is more powerful than what you just described. But we haven't implemented those concepts yet in a released version (however there are prototypes floating around for discussion). ;-)

If all you want is an svn:externals type of hack, you can easily write a wrapper script to cd into the subproject Z and run `git pull`, merging in any recent changes from the upstream.

But we haven't automated that, as our concept of a subproject is much more sophisticated and doesn't always mean update the subproject to the latest version.

-- 
Shawn.
Previous: luke.powell@bjservices.comNext: Jakub Narebski
Message 2 of 3 in “git support for subprojects?”
  1. luke.powell@bjservices.comMar 13, 2007
  2. Shawn O. PearceMar 13, 2007
  3. Jakub NarebskiMar 14, 2007

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.