From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E157B20441 for ; Wed, 31 Aug 2016 02:50:47 +0000 (UTC) From: Eric Wong To: mogilefs-client-public@bogomips.org Subject: [PATCH 5/6] add .gitattributes for Ruby method detection Date: Wed, 31 Aug 2016 02:50:45 +0000 Message-Id: <20160831025046.24153-6-e@80x24.org> In-Reply-To: <20160831025046.24153-1-e@80x24.org> References: <20160831025046.24153-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..cfedc1f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.gemspec diff=ruby +*.rb diff=ruby +Rakefile diff=ruby +bin/* diff=ruby -- EW