From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.8 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: raindrops-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id F27CB633811 for ; Wed, 24 Feb 2016 01:44:10 +0000 (UTC) From: Eric Wong To: raindrops-public@bogomips.org Subject: [PATCH] add .gitattributes for Ruby method detection Date: Wed, 24 Feb 2016 01:44:17 +0000 Message-Id: <20160224014417.21227-1-e@80x24.org> List-Id: 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 -- EW