diff options
author | Ping Yin <pkufranky@gmail.com> | 2008-04-12 23:05:31 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-12 20:00:45 -0700 |
commit | d0f64dd44d5f708f77380998b2c16bffe1e94050 (patch) | |
tree | 55456f9485f192f9b616ea7b4c86bc6a8fde0755 /t/t7401-submodule-summary.sh | |
parent | f43e2fd43b50d5a82a34bb3e4f848cb38bf93b7f (diff) | |
download | git-d0f64dd44d5f708f77380998b2c16bffe1e94050.tar.gz |
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 <pkufranky@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7401-submodule-summary.sh')
-rwxr-xr-x | t/t7401-submodule-summary.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 - <<EOF +# Modified submodules: +# +# * sm1 $head6...0000000: +# +# * sm2 0000000...$head7 (2): +# > Add foo9 +# +EOF +" + test_done |