author | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 Sep 2011 20:30:30 +0000 (13:30 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 Sep 2011 21:07:55 +0000 (14:07 -0700) | ||
commit | 855726395342441808eff5e4e9ad9a2b9254edbc | |
tree | feb0bf00d6dbef465854f9b371cca37eeef43434 | tree | snapshot |
parent | 77b15bbd88e2f48de093ff0e60de6dbc11e3329e | commit | diff |
apply --whitespace=error: correctly report new blank lines at end
Earlier, 77b15bb (apply --whitespace=warn/error: diagnose blank at EOF,
2009-09-03) cheated by reporting the line number of the hunk that contains
the offending line that adds new blank lines at the end of the file. All
other types of whitespace errors are reported with the line number in the
patch file that has the actual offending text.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Earlier, 77b15bb (apply --whitespace=warn/error: diagnose blank at EOF,
2009-09-03) cheated by reporting the line number of the hunk that contains
the offending line that adds new blank lines at the end of the file. All
other types of whitespace errors are reported with the line number in the
patch file that has the actual offending text.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c | diff | blob | history |