author | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Mar 2010 22:19:10 +0000 (14:19 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Mar 2010 22:33:22 +0000 (14:33 -0800) | ||
commit | 14e940d719e9d3250b802fbc975210dafaf896d8 | |
tree | 68cfa9a84ab1ddb464d01f603764f993a16a6171 | tree | snapshot |
parent | caa9c3cabe9c2719a340425db5c0968fd3588fc9 | commit | diff |
submodule summary: do not fail before the first commit
When "git status" collects changes for the index (usually relative to
HEAD), it compares the index with an empty tree when the repository does
not have an initial commit yet. "git submodule summary" is about asking
what submodule changes would be recorded if a commit is made right now,
and should do the same comparison to report all the added submodules,
instead of punting and being silent.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When "git status" collects changes for the index (usually relative to
HEAD), it compares the index with an empty tree when the repository does
not have an initial commit yet. "git submodule summary" is about asking
what submodule changes would be recorded if a commit is made right now,
and should do the same comparison to report all the added submodules,
instead of punting and being silent.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | diff | blob | history |