diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2018-03-05 10:56:29 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-05 10:45:41 -0800 |
commit | b3e0fcfe429204ccdf1f6977c55127171d65a8e5 (patch) | |
tree | e06dcb66e45993aa3e2c0bc775ce1826f8b85331 /git-rebase--interactive.sh | |
parent | add -p: calculate offset delta for edited patches (diff) | |
download | tgif-b3e0fcfe429204ccdf1f6977c55127171d65a8e5.tar.xz |
add -p: fix counting when splitting and coalescing
When a file has no trailing new line at the end diff records this by
appending "\ No newline at end of file" below the last line of the
file. This line should not be counted in the hunk header. Fix the
splitting and coalescing code to count files without a trailing new line
properly and change one of the tests to test splitting without a
trailing new line.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase--interactive.sh')
0 files changed, 0 insertions, 0 deletions