Fix git check in verify generated files (GH-15363)

Git 2.46.0 accidentally broke git diff --exit-code for files flagged with -diff.
Add the -a flag to restore the previous behavior. This issue is already fixed in
gits next branch.
This commit is contained in:
Ilija Tovilo 2024-08-12 15:57:34 +02:00
parent 39bacafeed
commit 9be52dcd62
No known key found for this signature in database
GPG Key ID: 5050C66BFCD1015A

View File

@ -12,4 +12,5 @@ runs:
ext/tokenizer/tokenizer_data_gen.php
build/gen_stub.php -f
build/gen_stub.php --generate-optimizer-info
git add . -N && git diff --exit-code
# Use the -a flag for a bug in git 2.46.0, which doesn't consider changed -diff files.
git add . -N && git diff -a --exit-code