Skip to content

Commit

Permalink
Merge branch 'jc/apply-ws-fix-expands-report'
Browse files Browse the repository at this point in the history
"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
  • Loading branch information
Junio C Hamano committed Mar 3, 2015
2 parents 71f19cc + 0a80bc9 commit 73b690a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,9 @@ static int parse_fragment(const char *line, unsigned long size,
if (!deleted && !added)
leading++;
trailing++;
if (!apply_in_reverse &&
ws_error_action == correct_ws_error)
check_whitespace(line, len, patch->ws_rule);
break;
case '-':
if (apply_in_reverse &&
Expand Down

0 comments on commit 73b690a

Please sign in to comment.