diff options
author | Ping Yin <pkufranky@gmail.com> | 2008-04-12 15:05:31 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-13 03:00:45 (GMT) |
commit | d0f64dd44d5f708f77380998b2c16bffe1e94050 (patch) | |
tree | 55456f9485f192f9b616ea7b4c86bc6a8fde0755 /t | |
parent | f43e2fd43b50d5a82a34bb3e4f848cb38bf93b7f (diff) | |
download | git-d0f64dd44d5f708f77380998b2c16bffe1e94050.zip git-d0f64dd44d5f708f77380998b2c16bffe1e94050.tar.gz git-d0f64dd44d5f708f77380998b2c16bffe1e94050.tar.bz2 |
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')
-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 b9a2219..bf12dbd 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 |