summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-17 22:01:03 +0000
committerEric Wong <e@80x24.org>2015-11-17 22:05:20 +0000
commit9abee7848c39616af5e584565d7a2c762623a42d (patch)
treec305aca84a492ef2e3634a58f95b1d6bd0cf98b4
parent6452e02d910a52c9c1206ecec800b910609da405 (diff)
The "diff" function detection for C does not map well to
Ruby files, take advantage of gitattributes(5) to improve
method name detection in generated patches as well as
making "git diff -W" output more useful.
-rw-r--r--.gitattributes5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..21e0bd4
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,5 @@
+*.gemspec diff=ruby
+*.rb diff=ruby
+*.ru diff=ruby
+Rakefile diff=ruby
+bin/* diff=ruby