From: Linus Torvalds Date: Sun, 26 Nov 2006 03:39:35 GMT Subject: Re: [RFC] Submodules in GIT Message-ID: In-Reply-To: <20061125234908.GC24909@nan92-1-81-57-214-146.fbx.proxad.net> On Sun, 26 Nov 2006, Yann Dirson wrote: > > Also, I'd rather expect "git-commit -a" outside of any submodule to > commit everything in the supermodule, triggering submodule commits as an > intermediate step when needed - just like "git-commit -a" does not > require to manually specify subdirectories to inclue in the commit. I'd > rather expect a special flag to exclude submodules from a commit. So, how do you do commit messages? It generally doesn't make sense to share the same commit message for submodules - the sub-commits generally do different things. I'd actually suggest that "git commit -a" with non-clean submodules error out for that reason, with something like submodule 'src/xyzzy' is not up-to-date, please commit changes to that first. exactly because you really generally should consider the submodule commits to be a separate phase.