submodule summary: do not fail before the first commit
commit14e940d719e9d3250b802fbc975210dafaf896d8
authorJunio C Hamano <gitster@pobox.com>
Wed, 3 Mar 2010 22:19:10 +0000 (3 14:19 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Mar 2010 22:33:22 +0000 (3 14:33 -0800)
tree68cfa9a84ab1ddb464d01f603764f993a16a6171
parentcaa9c3cabe9c2719a340425db5c0968fd3588fc9
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>
git-submodule.sh