summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2016-11-09 16:37:58 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-11-13 15:25:12 +0100
commitad20fb4225111e4f5b1df6b905f6b3aa8a482723 (patch)
tree4463c08d92f0f991bea2f328c0ae7ef1f2f9a224
parent8ccc927962045354d706af4eb48df276101d78d4 (diff)
downloaddpdk-ad20fb4225111e4f5b1df6b905f6b3aa8a482723.zip
dpdk-ad20fb4225111e4f5b1df6b905f6b3aa8a482723.tar.gz
dpdk-ad20fb4225111e4f5b1df6b905f6b3aa8a482723.tar.xz
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 <thomas.monjalon@6wind.com>
-rw-r--r--.gitattributes3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..fe555f8
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+*.c diff=cpp
+*.h diff=cpp
+*.py diff=python