From 8fe5c0d649fa930c9027df42a2de9bb23f6ef8b8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 21 Nov 2015 01:37:24 +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 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