Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-02-11 20:19:23 +0300
committerJunio C Hamano <gitster@pobox.com>2020-02-11 21:19:33 +0300
commitf447d0293e803d9acf390bbdf373ed98bdc125f4 (patch)
treea292cefbae47c8d59700d0aa83d267115e3f7390 /split-index.h
parentb6537d83ee30693efb17a35321b8bd03b752033a (diff)
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 'split-index.h')
0 files changed, 0 insertions, 0 deletions