diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-06-21 05:38:36 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-21 05:38:36 -0700 |
commit | e1ba0f6340c1d72677c7792a0a82ecf05363026e (patch) | |
tree | f298b749b5dbdc6e1e3d639da3950c3287f2a81a /builtin | |
parent | 70649945c215b1674611a40eda1d0058118a6d1a (diff) | |
parent | 0c3ef984fa2d4a42be787e168cfb189d15b00919 (diff) | |
download | git-e1ba0f6340c1d72677c7792a0a82ecf05363026e.tar.gz |
Merge branch 'bg/apply-blank-trailing-context' into maint
* bg/apply-blank-trailing-context:
apply: Allow blank *trailing* context lines to match beyond EOF
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/apply.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/builtin/apply.c b/builtin/apply.c index 771c972c55..f669157b42 100644 --- a/builtin/apply.c +++ b/builtin/apply.c @@ -1864,13 +1864,13 @@ static int match_fragment(struct image *img, if (match_end && (preimage->nr + try_lno != img->nr)) return 0; } else if (ws_error_action == correct_ws_error && - (ws_rule & WS_BLANK_AT_EOF) && match_end) { + (ws_rule & WS_BLANK_AT_EOF)) { /* - * This hunk that matches at the end extends beyond - * the end of img, and we are removing blank lines - * at the end of the file. This many lines from the - * beginning of the preimage must match with img, and - * the remainder of the preimage must be blank. + * This hunk extends beyond the end of img, and we are + * removing blank lines at the end of the file. This + * many lines from the beginning of the preimage must + * match with img, and the remainder of the preimage + * must be blank. */ preimage_limit = img->nr - try_lno; } else { |