]> git.ipfire.org Git - thirdparty/git.git/commit
range-diff: split lines manually
authorThomas Gummerer <t.gummerer@gmail.com>
Thu, 11 Jul 2019 16:08:46 +0000 (17:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 21:29:27 +0000 (14:29 -0700)
commit44b67cb62b339fdc6239ef6b72b8c75b559a574a
treee0b945eeb5283761968d5a3e15efcd0c6a43ebe8
parent1ca69225981a915b0041f74047fe554b1580da5b
range-diff: split lines manually

Currently range-diff uses the 'strbuf_getline()' function for doing
its line by line processing.  In a future patch we want to do parts of
that parsing using the 'parse_git_diff_header()' function.  That
function does its own line by line reading of the input, and doesn't
use strbufs.  This doesn't match with how we do the line-by-line
processing in range-diff currently.

Switch range-diff to do our own line by line parsing, so we can re-use
the 'parse_git_diff_header()' function later.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
range-diff.c