aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-10-24 09:10:37 -0700
committerJunio C Hamano <gitster@pobox.com>2025-10-24 09:10:37 -0700
commit88b3704ab17b16d5d6f7f5cf7129e800ad22e282 (patch)
treead9ca29194daae36fe845473e33f20765643753e /t
parentThe twenty-second batch (diff)
parentdiff: restore redirection to /dev/null for diff_from_contents (diff)
downloadgit-88b3704ab17b16d5d6f7f5cf7129e800ad22e282.tar.gz
git-88b3704ab17b16d5d6f7f5cf7129e800ad22e282.zip
Merge branch 'jk/diff-from-contents-fix'
Recently we attempted to improve "git diff -w" and friends to handle cases where patch output would be suppressed, but it introduced a bug that emits unnecessary output, which has been corrected. * jk/diff-from-contents-fix: diff: restore redirection to /dev/null for diff_from_contents
Diffstat (limited to 't')
-rwxr-xr-xt/t4035-diff-quiet.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t4035-diff-quiet.sh b/t/t4035-diff-quiet.sh
index 0352bf81a9..35eaf0855f 100755
--- a/t/t4035-diff-quiet.sh
+++ b/t/t4035-diff-quiet.sh
@@ -50,6 +50,10 @@ test_expect_success 'git diff-tree HEAD HEAD' '
test_expect_code 0 git diff-tree --quiet HEAD HEAD >cnt &&
test_line_count = 0 cnt
'
+test_expect_success 'git diff-tree -w HEAD^ HEAD' '
+ test_expect_code 1 git diff-tree --quiet -w HEAD^ HEAD >cnt &&
+ test_line_count = 0 cnt
+'
test_expect_success 'git diff-files' '
test_expect_code 0 git diff-files --quiet >cnt &&
test_line_count = 0 cnt