From d0f64dd44d5f708f77380998b2c16bffe1e94050 Mon Sep 17 00:00:00 2001 From: Ping Yin Date: Sat, 12 Apr 2008 23:05:31 +0800 Subject: git-submodule summary: --for-status option The --for-status option is mainly used by builtin-status/commit. It adds 'Modified submodules:' line at top and '# ' prefix to all following lines. Signed-off-by: Ping Yin Signed-off-by: Junio C Hamano --- t/t7401-submodule-summary.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 't/t7401-submodule-summary.sh') diff --git a/t/t7401-submodule-summary.sh b/t/t7401-submodule-summary.sh index b9a22190e8..bf12dbdeef 100755 --- 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 - < Add foo9 +# +EOF +" + test_done -- cgit v1.2.3