summaryrefslogtreecommitdiff
path: root/builtin/ls-tree.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-02-11 12:19:23 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-11 10:19:33 -0800
commitf447d0293e803d9acf390bbdf373ed98bdc125f4 (patch)
treea292cefbae47c8d59700d0aa83d267115e3f7390 /builtin/ls-tree.c
parentmailinfo: treat header values as C strings (diff)
downloadtgif-f447d0293e803d9acf390bbdf373ed98bdc125f4.tar.xz
mailinfo: simplify parsing of header values
Our code to parse header values first checks to see if a line starts with a header, and then manually skips past the matched string to find the value. We can do this all in one step by modeling after skip_prefix(), which returns a pointer into the string after the parsing. This lets us remove some repeated strings, and will also enable us to parse more flexibly in a future patch. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-tree.c')
0 files changed, 0 insertions, 0 deletions