about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-21 01:37:24 +0000
committerEric Wong <e@80x24.org>2015-11-21 01:43:37 +0000
commit8fe5c0d649fa930c9027df42a2de9bb23f6ef8b8 (patch)
treef2daf10eec32f72f2195f7e6dbef1f670628473f
parent0a10915fff80ff90bdef2a905dfdc589e815aefd (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