author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Fri, 22 Dec 2006 02:20:11 +0000 (03:20 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 22 Dec 2006 04:31:14 +0000 (20:31 -0800) | ||
commit | e6d40d65df07059fc655fabe62fa5b575ead7815 | |
tree | 732e263f429db3702fd770b89fa4279a1dc36e2d | tree | snapshot |
parent | ec722203ee43beed8e4feac84af4307eb68f1ba3 | commit | diff |
diff --check: fix off by one error
When parsing the diff line starting with '@@', the line number of the
'+' file is parsed. For the subsequent line parses, the line number
should therefore be incremented after the parse, not before it.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
When parsing the diff line starting with '@@', the line number of the
'+' file is parsed. For the subsequent line parses, the line number
should therefore be incremented after the parse, not before it.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | diff | blob | history |