On Friday 2006, December 01 19:38, Martin Waitz wrote:
No you don't; when traversing the supermodule history you will come across
trees that have submodule commit hashes in them, that is all the other end
needs to know. If it wants it can then connect to the submodule and clone
submodule to submodule. The whole operation doesn't have to be done in the
supermodule though.
That's true; but is it the right way? I really really think the submodule
objects should be in the submodule itself.
There is one benefit - you can git-clone the submodule just as you would if it
were not a submodule. In fact, from the submodule's point of view it knows
nothing about the supermodule.
I'm going to guess by reachability analysis, you mean that the submodule
doesn't know that some of it's commits are referenced by the supermodule. As
I suggested elsewhere in the thread, that's easily fixed by making a
refs/supermodule/commitXXXX file for each supermodule commit that references
as particular submodule commit. Then you can git-prune, git-fsck whenever
you want.
Andy
--
Dr Andrew Parkins, M Eng (Hons), AMIEE
andyparkins@gmail.com
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html