Re: [PATCH v2 3/5] diff: mode-only change should be noticed by "--patch -w --exit-code"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 18, 2023, 21:15 UTC
- Message-ID
- <xmqq4jkwuk6j.fsf@gitster.g>
- In-Reply-To
- <20230817222949.3835424-4-gitster@pobox.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 13 quoted lines
> diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh > index f3e20dd5bb..943ad252d4 100755 > --- a/t/t4015-diff-whitespace.sh > +++ b/t/t4015-diff-whitespace.sh > @@ -11,6 +11,39 @@ TEST_PASSES_SANITIZE_LEAK=true > + ... > + test_expect_success "status with $opts (mode differs)" ' > + test_when_finished "git update-index --chmod=-x x" && > + echo foo >x && > + git add x && > + git update-index --chmod=+x x && > + test_expect_code 1 git diff -w $opts --exit-code x > + '
Apparently this one needs to skipped on a filesystem without support for the executable bit.
cf. https://github.com/git/git/actions/runs/5897310248/job/15996914969#step:5:218
I'll give POSIXPERM prerequisite to this test piece.