summaryrefslogtreecommitdiff
path: root/t/t7401-submodule-summary.sh
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2013-09-06 17:43:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-06 20:33:18 (GMT)
commit3ba7407b8b7b7a75f720641327207d6cfdb163a2 (patch)
tree7e234f6f8a8257f2861754357500b444c3a18972 /t/t7401-submodule-summary.sh
parentbb7e32e383d66c290d11174108b2944532905df6 (diff)
downloadgit-3ba7407b8b7b7a75f720641327207d6cfdb163a2.zip
git-3ba7407b8b7b7a75f720641327207d6cfdb163a2.tar.gz
git-3ba7407b8b7b7a75f720641327207d6cfdb163a2.tar.bz2
submodule summary: ignore --for-status option
The --for-status option was an undocumented option used only by wt-status.c, which inserted a header and commented out the output. We can achieve the same result within wt-status.c, without polluting the submodule command-line options. This will make it easier to disable the comments from wt-status.c later. The --for-status is kept so that another topic in flight (bc/submodule-status-ignored) can continue relying on it, although it is currently a no-op. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7401-submodule-summary.sh')
-rwxr-xr-xt/t7401-submodule-summary.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/t/t7401-submodule-summary.sh b/t/t7401-submodule-summary.sh
index ac2434c..5a6d6d6 100755
--- a/t/t7401-submodule-summary.sh
+++ b/t/t7401-submodule-summary.sh
@@ -265,13 +265,11 @@ EOF
test_expect_success '--for-status' "
git submodule summary --for-status HEAD^ >actual &&
test_i18ncmp actual - <<EOF
-# Submodule changes to be committed:
-#
-# * sm1 $head6...0000000:
-#
-# * sm2 0000000...$head7 (2):
-# > Add foo9
-#
+* sm1 $head6...0000000:
+
+* sm2 0000000...$head7 (2):
+ > Add foo9
+
EOF
"