]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
parse_config_key: use skip_prefix instead of starts_with
authorJeff King <peff@peff.net>
Fri, 24 Feb 2017 21:07:19 +0000 (16:07 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2017 21:22:09 +0000 (13:22 -0800)
commite3394fdce79411fd51e20082c0faf7061007bc1c
tree9a0da47c010ef9c915f8759aada1ed82c3d1f27e
parent49624d1e518f14fe03ba6c8824aaaf420e01a834
parse_config_key: use skip_prefix instead of starts_with

This saves us having to repeatedly add in "section_len" (and
also avoids walking over the first part of the string
multiple times for a strlen() and strrchr()).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c