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.