diff --git a/.gitattributes b/.gitattributes index 5bee19d08d632..514999ffccfeb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,7 +13,8 @@ /UPGRADING merge=NEWS /UPGRADING.INTERNALS merge=NEWS -# Enable commit diffs for binary PHP test files. Some PHP test files include -# special characters, such as ASCII control characters. Git recognizes these as -# binary and wouldn't generate diffs. -*.phpt diff +# Configure proper diff drivers to improve the context lines in the output +# of git diff and to improve token splitting for --word-diff. +*.phpt diff=php +*.php diff=php +*.[ch] diff=cpp