Merge branch 'maint'

* maint:
  Fix "apply --reverse" with regard to whitespace
This commit is contained in:
Junio C Hamano
2007-07-07 12:29:09 -07:00
2 changed files with 11 additions and 1 deletions

View File

@ -1003,12 +1003,16 @@ static int parse_fragment(char *line, unsigned long size, struct patch *patch, s
trailing++;
break;
case '-':
if (apply_in_reverse &&
new_whitespace != nowarn_whitespace)
check_whitespace(line, len);
deleted++;
oldlines--;
trailing = 0;
break;
case '+':
if (new_whitespace != nowarn_whitespace)
if (!apply_in_reverse &&
new_whitespace != nowarn_whitespace)
check_whitespace(line, len);
added++;
newlines--;