Add whitespace filter to incremental mode

[Fix #441]
This commit is contained in:
Markus Schirp 2018-12-24 16:23:58 +00:00
parent b9e4e7a761
commit 25d999b468
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