]> git.ipfire.org Git - thirdparty/git.git/commit
apply --whitespace=error: correctly report new blank lines at end
authorJunio C Hamano <gitster@pobox.com>
Mon, 26 Sep 2011 20:30:30 +0000 (13:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Sep 2011 21:07:55 +0000 (14:07 -0700)
commit855726395342441808eff5e4e9ad9a2b9254edbc
treefeb0bf00d6dbef465854f9b371cca37eeef43434
parent77b15bbd88e2f48de093ff0e60de6dbc11e3329e
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>
builtin-apply.c