aboutsummaryrefslogtreecommitdiff
path: root/t/t7007-show.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t7007-show.sh')
-rwxr-xr-xt/t7007-show.sh12
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