From 6bcdc6530a437bb4eca24fb41439e34690376972 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sat, 20 Feb 2021 19:21:35 +0100 Subject: [PATCH] MINOR: Configure the `cpp` userdiff driver for *.[ch] in .gitattributes This might improve the output of `git diff` in certain cases. Especially `git diff --word-diff` will be much more useful. Does not affect the generated code, may be backported for consistency if desired. --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index cd3d1ff48e..4b566452d9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ SUBVERS export-subst VERDATE export-subst +*.[ch] diff=cpp