diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-09-04 01:41:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-09-04 02:35:24 -0700 |
commit | ef2035c5e55f852905b012dfb2dd242b4f77da70 (patch) | |
tree | 0a54e237b0dc38402848ab337118298e1929bdc5 /t/t4020/diff.NUL | |
parent | Documentation: git-archive: mark --format as optional in summary (diff) | |
download | tgif-ef2035c5e55f852905b012dfb2dd242b4f77da70.tar.xz |
apply --whitespace=fix: fix handling of blank lines at the eof
b94f2ed (builtin-apply.c: make it more line oriented, 2008-01-26) broke
the logic used to detect if a hunk adds blank lines at the end of the
file. With the new code after that commit:
- img holds the contents of the file that the hunk is being applied to;
- preimage has the lines the hunk expects to be in img; and
- postimage has the lines the hunk wants to update the part in img that
corresponds to preimage with.
and we need to compare if the last line of preimage (not postimage)
matches the last line of img to see if the hunk applies at the end of the
file.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4020/diff.NUL')
0 files changed, 0 insertions, 0 deletions