Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add test cases for git-am
[gitweb.git]
/
t
/
t7401-submodule-summary.sh
diff --git
a/t/t7401-submodule-summary.sh
b/t/t7401-submodule-summary.sh
index b9a22190e86a0b8718b215771352ecefbdf86edc..bf12dbdeef6e307850a91eb6be5ebe537b2de0c8 100755
(executable)
--- a/
t/t7401-submodule-summary.sh
+++ b/
t/t7401-submodule-summary.sh
@@
-192,4
+192,17
@@
test_expect_success 'given commit' "
EOF
"
+test_expect_success '--for-status' "
+ git submodule summary --for-status HEAD^ >actual &&
+ test_cmp actual - <<EOF
+# Modified submodules:
+#
+# * sm1 $head6...0000000:
+#
+# * sm2 0000000...$head7 (2):
+# > Add foo9
+#
+EOF
+"
+
test_done