Merge branch 'rs/external-diff-with-exit-code'

The "--exit-code" option of "git diff" command learned to work with
the "--ext-diff" option.

* rs/external-diff-with-exit-code:
  diff: fix --exit-code with external diff
  diff: report unmerged paths as changes in run_diff_cmd()
This commit is contained in:
Junio C Hamano
2024-05-15 09:52:54 -07:00
3 changed files with 47 additions and 3 deletions

View File

@ -98,4 +98,12 @@ test_expect_success 'diff --stat' '
test_cmp diff-stat.expect diff-stat.actual
'
test_expect_success 'diff --quiet' '
test_expect_code 1 git diff --cached --quiet
'
test_expect_success 'diff --quiet --ignore-all-space' '
test_expect_code 1 git diff --cached --quiet --ignore-all-space
'
test_done