From: Avery Pennarun Date: Wed, 09 Apr 2008 06:34:58 GMT Subject: Re: Migrating svn to git with heavy use of externals Message-ID: <32541b130804082334s604b62b0j82b510c331f48213@mail.gmail.com> In-Reply-To: <49E9DCEC-8A9E-4AD7-BA58-5A40F475F2EA@sun.com> On Wed, Apr 9, 2008 at 12:39 AM, Roman Shaposhnik wrote: > Agreed. But I guess I'd be less confused if "git submodule" didn't muck > with .git/config at all. Or are there any other consumers of the > information > that it puts there (except itself)? That I don't know. If there aren't any others, then I agree, I'm not sure what the whole .git/config messing is about. > > In my own use case, I think having all the objects from the > > supermodule *and* submodules all be in the same repo is what I want. > > This kind of obviates the need for .gitmodules entirely, if > > git-checkout and friends will do the right thing. I think I'll submit > > some patches eventually once I have this figured out properly. > > Hm. But what about those who might want to pull from you? .git/config > doesn't propagate, which means that they'll be kind of stuck, don't > you think? Not exactly. The idea is that if the supermodule and submodules are all lumped into a single repo (and your refs are set up correctly), then cloning the supermodule will also clone all the submodules. So everyone will have all the necessary refs anyway; as long as git-checkout checks them out, .gitmodules shouldn't have to exist at all, becaues there's nothing "special" for git-submodule to do. Have fun, Avery