From 0ffe20a3310e2c98c49034d2135ac41069d2fd85 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 13 Dec 2015 22:32:58 +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 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes (limited to '.gitattributes') 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 -- cgit v1.2.3-24-ge0c7