summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2018-03-05 10:56:29 +0000
committerJunio C Hamano <gitster@pobox.com>2018-03-05 10:45:41 -0800
commitb3e0fcfe429204ccdf1f6977c55127171d65a8e5 (patch)
treee06dcb66e45993aa3e2c0bc775ce1826f8b85331 /git-compat-util.h
parent2b8ea7f3c7d8dfd4f1eddaef6688b51f8106767e (diff)
downloadgit-b3e0fcfe429204ccdf1f6977c55127171d65a8e5.tar.gz
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-compat-util.h')
0 files changed, 0 insertions, 0 deletions