Merge branch 'jc/apply-ws-fix-expands-report'
"git apply --whitespace=fix" fixed whitespace errors in the common context lines but did so without reporting. * jc/apply-ws-fix-expands-report: apply: detect and mark whitespace errors in context lines when fixing
This commit is contained in:
commit
73b690a634
@ -1601,6 +1601,9 @@ static int parse_fragment(const char *line, unsigned long size,
|
|||||||
if (!deleted && !added)
|
if (!deleted && !added)
|
||||||
leading++;
|
leading++;
|
||||||
trailing++;
|
trailing++;
|
||||||
|
if (!apply_in_reverse &&
|
||||||
|
ws_error_action == correct_ws_error)
|
||||||
|
check_whitespace(line, len, patch->ws_rule);
|
||||||
break;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
if (apply_in_reverse &&
|
if (apply_in_reverse &&
|
||||||
|
Loading…
Reference in New Issue
Block a user