From 929352b2603bd011c48119d8d75a1a00a3889ca8 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Wed, 15 Jun 2016 10:25:52 +0200 Subject: [PATCH] Set Java hunk header for *.java files 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 9535ab16..10c31b96 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,6 @@ * text=auto -*.java text +*.java text diff=java *.txt text *.md text -- 2.39.2