Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  diff --check: fix off by one error
  spurious .sp in manpages
  • Loading branch information
Junio C Hamano committed Dec 22, 2006
2 parents 95f2fb7 + e6d40d6 commit 27e4dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,6 @@ static void checkdiff_consume(void *priv, char *line, unsigned long len)
if (line[0] == '+') {
int i, spaces = 0;

data->lineno++;

/* check space before tab */
for (i = 1; i < len && (line[i] == ' ' || line[i] == '\t'); i++)
if (line[i] == ' ')
Expand All @@ -876,6 +874,8 @@ static void checkdiff_consume(void *priv, char *line, unsigned long len)
if (isspace(line[len - 1]))
printf("%s:%d: white space at end: %.*s\n",
data->filename, data->lineno, (int)len, line);

data->lineno++;
} else if (line[0] == ' ')
data->lineno++;
else if (line[0] == '@') {
Expand Down

0 comments on commit 27e4dd8

Please sign in to comment.