Re: git support for subprojects?
From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:42:59
Luke.Powell@bjservices.com wrote:
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.