diff options
author | Jeff King <peff@peff.net> | 2020-02-11 12:19:23 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-11 10:19:33 -0800 |
commit | f447d0293e803d9acf390bbdf373ed98bdc125f4 (patch) | |
tree | a292cefbae47c8d59700d0aa83d267115e3f7390 /contrib/coccinelle/qsort.cocci | |
parent | mailinfo: treat header values as C strings (diff) | |
download | tgif-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 'contrib/coccinelle/qsort.cocci')
0 files changed, 0 insertions, 0 deletions