Merge pull request #820 from mbj/add/whitespace-filter-to-incremental

Add whitespace filter to incremental mode
This commit is contained in:
Markus Schirp 2018-12-24 16:27:53 +00:00 committed by GitHub
commit 3e1846abf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -41,6 +41,7 @@ module Mutant
command = %W[
git log
#{from}...#{to}
--ignore-all-space
-L #{line_range.begin},#{line_range.end}:#{path}
]

View file

@ -75,7 +75,7 @@ describe Mutant::Repository::Diff do
end
let(:expected_git_log_command) do
%W[git log from_rev...to_rev -L 1,2:#{path}]
%W[git log from_rev...to_rev --ignore-all-space -L 1,2:#{path}]
end
context 'on failure of git log command' do