Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<junkio@cox.net>
Fri, 22 Dec 2006 06:56:04 +0000
(22:56 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 22 Dec 2006 06:56:04 +0000
(22:56 -0800)
* maint:
diff --check: fix off by one error
spurious .sp in manpages
diff.c
patch
|
blob
|
history
raw
(from parent 1:
95f2fb7
)
diff --git
a/diff.c
b/diff.c
index 91f956b23b0d641e4e330e1e22c0b8bc8cc0fed0..f14288bb8a100c43c6709f658b9a9ca44832fd7f 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-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] == ' ')
@@
-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] == '@') {