]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'cp/apply-core-filemode'
authorJunio C Hamano <gitster@pobox.com>
Tue, 27 Feb 2024 02:10:24 +0000 (18:10 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Feb 2024 02:10:24 +0000 (18:10 -0800)
"git apply" on a filesystem without filemode support have learned
to take a hint from what is in the index for the path, even when
not working with the "--index" or "--cached" option, when checking
the executable bit match what is required by the preimage in the
patch.

* cp/apply-core-filemode:
  apply: code simplification
  apply: correctly reverse patch's pre- and post-image mode bits
  apply: ignore working tree filemode when !core.filemode

1  2 
apply.c
t/t4129-apply-samemode.sh

diff --cc apply.c
Simple merge
Simple merge