use skip_prefix to avoid repeated calculations
authorJeff King <redacted>
Wed, 18 Jun 2014 19:57:17 +0000 (15:57 -0400)
committerJunio C Hamano <redacted>
Fri, 20 Jun 2014 17:45:19 +0000 (10:45 -0700)
commitde8118e153c5e527263086605e437ccca5d4f1ef
treeec37ddbc7532f1828d4535ab375805a6f794cb7e
parent6d87780399e1196932cd5ea72f84aa90224e7402
use skip_prefix to avoid repeated calculations

In some cases, we use starts_with to check for a prefix, and
then use an already-calculated prefix length to advance a
pointer past the prefix. There are no magic numbers or
duplicated strings here, but we can still make the code
simpler and more obvious by using skip_prefix.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
help.c
http.c
git clone https://git.99rst.org/PROJECT