author | Christoph Mallon <christoph.mallon@gmx.de> | |
Sun, 10 Oct 2010 17:24:06 +0000 (19:24 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 17 Oct 2010 01:57:35 +0000 (18:57 -0700) | ||
commit | 8837d33595b78dc4a52038856bc9a5c3f4b2ff50 | |
tree | 230f192ba2e15ea0e0e195037263c57172a4b826 | tree | snapshot |
parent | 593ce2bea5dad436e87b5dd37c205961d73feae9 | commit | diff |
diff --check: correct line numbers of new blank lines at EOF
The whitespace check printed the value of the wrong variable, i.e. the
beginning of the block of blank lines at the EOF (possibly absent) in the
old file.
As "git diff --check" is used by users to check their changes before
making a commit, we should point at the line number in the file after
the change.
Signed-off-by: Christoph Mallon <christoph.mallon@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The whitespace check printed the value of the wrong variable, i.e. the
beginning of the block of blank lines at the EOF (possibly absent) in the
old file.
As "git diff --check" is used by users to check their changes before
making a commit, we should point at the line number in the file after
the change.
Signed-off-by: Christoph Mallon <christoph.mallon@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | diff | blob | history | |
t/t4019-diff-wserror.sh | diff | blob | history |