Re: [RFC] Submodules in GIT
- From
- sf <sf@b-i-t.de>
- Date
- Dec 1, 2006, 13:21 UTC
- Message-ID
- <45702C50.9050307@b-i-t.de>
- In-Reply-To
- <20061201121110.GP18810@admingilde.org>
Martin Waitz wrote:
Show 13 quoted lines
> hoi :) > > On Fri, Dec 01, 2006 at 01:03:48PM +0100, sf wrote: >> Andreas Ericsson wrote: >> 2. You can never prune the main (the supermodule's) repository, at least >> not with what git provides today. > > It even already works (well, not with what git provides today, but with > my implementation). git-prune simply walks all the submodules, too, when > doing it's reachability analysis. > > What does not work is a prune inside the submodule, because it does not > know about all the commits used by the supermodule.
I just had a short (really short) look at your work. My impression is that your repository setup is much too complicated.
As I proposed elsewhere: For submodules to work you only need to allow commits in tree objects (that is what your implementation requires as well). Everything else is in the tools. Much simpler.
Regards
Stephan