diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-10 15:42:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-10 15:42:48 -0700 |
commit | 1c0712dea8fd927faa49fe494f507d18f0d41264 (patch) | |
tree | 364ec91c8754a32dfd3b93232281b44f3d111186 /t | |
parent | 7ff38b0847a641970a30cdfdae30f97afc233ea9 (diff) | |
parent | f9c75d858d85449a8a6f635bef4b5bd003edd764 (diff) | |
download | git-1c0712dea8fd927faa49fe494f507d18f0d41264.tar.gz git-1c0712dea8fd927faa49fe494f507d18f0d41264.tar.xz |
Merge branch 'jk/maint-quiet-is-synonym-to-s-in-log'
We tried to bend backwards to allow "--quiet" to be a synonym as
"-s" when given as e.g. "git show --quiet", but did not quite
succeed.
* jk/maint-quiet-is-synonym-to-s-in-log:
log: fix --quiet synonym for -s
Diffstat (limited to 't')
-rwxr-xr-x | t/t7007-show.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t7007-show.sh b/t/t7007-show.sh index a40cd3630..e41fa00b8 100755 --- a/t/t7007-show.sh +++ b/t/t7007-show.sh @@ -108,4 +108,16 @@ test_expect_success 'showing range' ' test_cmp expect actual.filtered ' +test_expect_success '-s suppresses diff' ' + echo main3 >expect && + git show -s --format=%s main3 >actual && + test_cmp expect actual +' + +test_expect_success '--quiet suppresses diff' ' + echo main3 >expect && + git show --quiet --format=%s main3 >actual && + test_cmp expect actual +' + test_done |