From be8eb05977820c41d34f22d7a38ac31bdf3cce6d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 24 Feb 2016 01:44:17 +0000 Subject: add .gitattributes for Ruby method detection 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. --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8b88b26 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.gemspec diff=ruby +*.rb diff=ruby +*.ru diff=ruby +Rakefile diff=ruby -- cgit v1.2.3-24-ge0c7