From: Junio C Hamano Date: Thu, 11 Aug 2011 23:34:53 GMT Subject: Re: [PATCH v2 2/2] Move git-dir for submodules Message-ID: <7vy5yzo736.fsf@alter.siamese.dyndns.org> In-Reply-To: <1312831022-12868-3-git-send-email-iveqy@iveqy.com> Fredrik Gustafsson writes: > Move git-dir for submodules into $GIT_DIR/modules/[name_of_submodule] of > the superproject. This is a step towards being able to delete submodule > directories without loosing the information from their .git directory > as that is now stored outside the submodules work tree. > > This is done relying on the already existent .git-file functionality. > When adding or updating a submodule whose git directory is found under > $GIT_DIR/modules/[name_of_submodule], don't clone it again but simply > point the .git-file to it and remove the now stale index file from it. And the index is populated to match the correct commit how? > Tests that rely on .git being a directory have been fixed. Thanks. How would this interact with submodule repositories that are already initialized in-place?