]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
gitattributes: specify word diff regex for C and C++ sources
authorPetr Špaček <petr.spacek@nic.cz>
Tue, 26 Feb 2019 11:08:53 +0000 (12:08 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Wed, 6 Mar 2019 12:03:28 +0000 (13:03 +0100)
This makes git diff --word-diff easier to read.

.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..1da6af4
--- /dev/null
@@ -0,0 +1,2 @@
+*.c    diff=cpp
+*.cpp  diff=cpp