summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-10 10:19:55 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-07-10 17:22:35 +0200
commita1c7ae28a3d3b6fb045761e682cbc24a4c1136ec (patch)
treef6f4f587d84c4c9e02de564b023830fd990257f7
parent747e3c83e6d147f3d6fe92b001c5431deaddc8a1 (diff)
Improve git diff output for vala files
Telling git that .vala files should be diff'ed as if they are java files makes the output more readable since the current method name appears in the hunk header. For some reason, using diff=csharp gives worse results than diff=java, that's why the latter is used. https://bugzilla.gnome.org/show_bug.cgi?id=679666
-rw-r--r--.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..ffaf68c
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.vala diff=java