summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-11-29 17:52:31 -0800
committerJunio C Hamano <gitster@pobox.com>2010-11-29 17:52:31 -0800
commit039e84e30d38f51d68ab465bfae32ba8058b51a0 (patch)
treeb7f8c37bebd8ec45d0ed6db44eb9500f82208bf1 /diff.c
parentf565f6e06511249c8c3690277023a8550dbdfb47 (diff)
parent8837d33595b78dc4a52038856bc9a5c3f4b2ff50 (diff)
downloadgit-039e84e30d38f51d68ab465bfae32ba8058b51a0.tar.gz
Merge branch 'cm/diff-check-at-eol'
* cm/diff-check-at-eol: diff --check: correct line numbers of new blank lines at EOF
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index c248bc64c5..d156ff252f 100644
--- a/diff.c
+++ b/diff.c
@@ -2158,7 +2158,7 @@ static void builtin_checkdiff(const char *name_a, const char *name_b,
ecbdata.ws_rule = data.ws_rule;
check_blank_at_eof(&mf1, &mf2, &ecbdata);
- blank_at_eof = ecbdata.blank_at_eof_in_preimage;
+ blank_at_eof = ecbdata.blank_at_eof_in_postimage;
if (blank_at_eof) {
static char *err;