Merge branch 'doc-style/for-next' of git://repo.or.cz/git/trast
[gitweb.git] / git-submodule.sh
index 77d223292c5b167a8a33b04b10b46426b68e0576..664f21721cb876eed7da167744066d834521c825 100755 (executable)
@@ -688,7 +688,11 @@ cmd_summary() {
                echo
        done |
        if test -n "$for_status"; then
-               echo "# Modified submodules:"
+               if [ -n "$files" ]; then
+                       echo "# Submodules changed but not updated:"
+               else
+                       echo "# Submodule changes to be committed:"
+               fi
                echo "#"
                sed -e 's|^|# |' -e 's|^# $|#|'
        else