From ad20fb4225111e4f5b1df6b905f6b3aa8a482723 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Wed, 9 Nov 2016 16:37:58 +0100 Subject: [PATCH] improve git diff Sometimes git does not print the name of the function being changed after @@. It happens especially after a goto label which is not indented. Giving a hint about the languages of files .c, .h and .py will improve hunk headers of "git diff" rendering. Signed-off-by: Thomas Monjalon --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..fe555f8083 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.c diff=cpp +*.h diff=cpp +*.py diff=python -- 2.20.1