summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-06-13 21:54:59 +0200
committerJunio C Hamano <gitster@pobox.com>2014-06-13 14:52:50 -0700
commit60d85e110b520ee5c6839380e5bb3d6e38571a74 (patch)
tree607fbf3b336f8f3bf958d48bb55992551e76c128 /builtin/commit.c
parent29aa0b2061712c83ec5eb5c1556436b1218035ba (diff)
downloadgit-60d85e110b520ee5c6839380e5bb3d6e38571a74.tar.gz
blame: simplify prepare_lines()rs/blame-refactor
Changing get_next_line() to return the end pointer instead of NULL in case no newline character is found treats allows us to treat complete and incomplete lines the same, simplifying the code. Switching to counting lines instead of EOLs allows us to start counting at the first character, instead of having to call get_next_line() first. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions