From f9ac7481be209778c4558ac008bd2b58f836f6fd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 13 Dec 2015 12:36:11 +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 (limited to '.gitattributes') diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cfedc1f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.gemspec diff=ruby +*.rb diff=ruby +Rakefile diff=ruby +bin/* diff=ruby -- cgit v1.2.3-24-ge0c7