Re: [RFC] Submodules in GIT
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Nov 26, 2006, 03:39 UTC
- Message-ID
- <Pine.LNX.4.64.0611251936590.3483@woody.osdl.org>
- In-Reply-To
- <20061125234908.GC24909@nan92-1-81-57-214-146.fbx.proxad.net>
On Sun, 26 Nov 2006, Yann Dirson wrote:
Show 6 quoted lines
> > 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.