{"thread":{"id":"15024","subject":"[EGIT PATCH] Enable diff=java for all *.java source files","startedAt":"2008-08-15T15:40:22Z","lastAt":"2008-08-18T05:49:37Z","messageCount":3,"participants":["Shawn O. Pearce","Robin Rosenberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"87320","messageId":"1218814822-23307-1-git-send-email-spearce@spearce.org","threadId":"15024","inReplyTo":null,"subject":"[EGIT PATCH] Enable diff=java for all *.java source files","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-08-15T15:40:22Z","receivedAt":"2008-08-15T15:40:22Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"This (usually) gets more reasonable function headers to\nappear in the header line for a diff hunk.  Its slightly\nbetter than the default C rules.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n .gitattributes |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n create mode 100644 .gitattributes\n\ndiff --git a/.gitattributes b/.gitattributes\nnew file mode 100644\nindex 0000000..f57840b\n--- /dev/null\n+++ b/.gitattributes\n@@ -0,0 +1 @@\n+*.java diff=java\n-- \n1.6.0.rc3.250.g8dd0\n"},{"id":"87512","messageId":"200808180738.21572.robin.rosenberg.lists@dewire.com","threadId":"15024","inReplyTo":"1218814822-23307-1-git-send-email-spearce@spearce.org","subject":"Re: [EGIT PATCH] Enable diff=java for all *.java source files","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2008-08-18T05:38:21Z","receivedAt":"2008-08-18T05:38:21Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"fredagen den 15 augusti 2008 17.40.22 skrev Shawn O. Pearce:\n> This (usually) gets more reasonable function headers to\n> appear in the header line for a diff hunk.  Its slightly\n> better than the default C rules.\n> \n> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>\n> ---\n>  .gitattributes |    1 +\n>  1 files changed, 1 insertions(+), 0 deletions(-)\n>  create mode 100644 .gitattributes\n> \n> diff --git a/.gitattributes b/.gitattributes\n> new file mode 100644\n> index 0000000..f57840b\n> --- /dev/null\n> +++ b/.gitattributes\n> @@ -0,0 +1 @@\n> +*.java diff=java\n\nIs there any reason this isn't the default in git?\n\n-- robin\n"},{"id":"87515","messageId":"20080818054937.GC7376@spearce.org","threadId":"15024","inReplyTo":"200808180738.21572.robin.rosenberg.lists@dewire.com","subject":"Re: [EGIT PATCH] Enable diff=java for all *.java source files","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-08-18T05:49:37Z","receivedAt":"2008-08-18T05:49:37Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:\n> > diff --git a/.gitattributes b/.gitattributes\n> > new file mode 100644\n> > index 0000000..f57840b\n> > --- /dev/null\n> > +++ b/.gitattributes\n> > @@ -0,0 +1 @@\n> > +*.java diff=java\n> \n> Is there any reason this isn't the default in git?\n\nBecause uh.  Nobody submitted a patch to make it the default?\n\nIt does seem like it would be a good idea to make it the default.\nIts unlikely the C function header pattern is ever going to produce a\nmore reasonable hunk header for a *.java file than the Java pattern.\n\n-- \nShawn.\n"}]}