]> xenbits.xensource.com Git - people/liuw/xtf.git/commitdiff
Introduce .gitattributes
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Jul 2016 13:02:42 +0000 (13:02 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 1 Aug 2016 10:07:56 +0000 (11:07 +0100)
This allows `git diff` and friends to be slightly more clever about generating
hunks for specific files.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..9197359
--- /dev/null
@@ -0,0 +1,6 @@
+# C/C++ files
+*.[hc] diff=cpp
+
+# Python files
+*.py diff=python
+xtf-runner diff=python