Revert "diff: fix --exit-code with external diff"

This reverts commit 11be65cfa4, per
original author's request to come up with a better strategy.
This commit is contained in:
Junio C Hamano
2024-05-16 10:08:35 -07:00
parent 11be65cfa4
commit e37423f081
2 changed files with 3 additions and 38 deletions

View File

@ -172,14 +172,6 @@ test_expect_success 'no diff with -diff' '
grep Binary out
'
test_expect_success 'diff.external and --exit-code with output' '
test_expect_code 1 git -c diff.external=echo diff --exit-code
'
test_expect_success 'diff.external and --exit-code without output' '
git -c diff.external=true diff --exit-code
'
echo NULZbetweenZwords | perl -pe 'y/Z/\000/' > file
test_expect_success 'force diff with "diff"' '