Thread (3 messages) 3 messages, 2 authors, 2016-06-15

Re: [EGIT PATCH] Enable diff=java for all *.java source files

From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:45:10

fredagen den 15 augusti 2008 17.40.22 skrev Shawn O. Pearce:
quoted hunk ↗ jump to hunk
This (usually) gets more reasonable function headers to
appear in the header line for a diff hunk.  Its slightly
better than the default C rules.

Signed-off-by: Shawn O. Pearce <redacted>
---
 .gitattributes |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 .gitattributes
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..f57840b
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.java diff=java
Is there any reason this isn't the default in git?

-- robin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help