From bd9056b3e0f3c82d307b3b5909cc8c990903c2e8 Mon Sep 17 00:00:00 2001 From: "Rozhkovsky, Andrey" Date: Wed, 2 Aug 2017 13:22:13 +0000 Subject: [PATCH] Reset git diff settings for color and mnemonicprefix to default --- lib/rubocop/git/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubocop/git/runner.rb b/lib/rubocop/git/runner.rb index 4f8e188..5fe78e9 100644 --- a/lib/rubocop/git/runner.rb +++ b/lib/rubocop/git/runner.rb @@ -33,7 +33,7 @@ def pull_request end def git_diff(options) - args = %w(diff --diff-filter=AMCR --find-renames --find-copies) + args = %w(-c diff.mnemonicprefix=false diff --no-color --diff-filter=AMCR --find-renames --find-copies) args << '--cached' if options.cached if options.file