From: Thomas Monjalon Date: Wed, 9 Nov 2016 15:37:58 +0000 (+0100) Subject: improve git diff X-Git-Tag: spdx-start~5319 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ad20fb4225111e4f5b1df6b905f6b3aa8a482723;p=dpdk.git 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 --- 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