]> WPIA git - gigi.git/commitdiff
Set Java hunk header for *.java files
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Wed, 15 Jun 2016 08:25:52 +0000 (10:25 +0200)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Wed, 15 Jun 2016 08:25:52 +0000 (10:25 +0200)
With this configuration, git displays the current function in the hunk
header, instead of the current class. This makes it easier to review
commits and diffs on the command line (and, hopefully, on Gerrit).

Change-Id: Ie1637cec0c12d813d27fe0156ced5a4900f3352e

.gitattributes

index 9535ab16027f42b756787a403ba26f895630831b..10c31b96b067369f4553016c70f621fbb2877bde 100644 (file)
@@ -1,6 +1,6 @@
 *      text=auto
 
-*.java text
+*.java text diff=java
 
 *.txt  text
 *.md   text