summaryrefslogtreecommitdiffstats
path: root/ewah/ewok.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-18 21:57:17 +0200
committerJunio C Hamano <gitster@pobox.com>2014-06-20 19:45:19 +0200
commitde8118e153c5e527263086605e437ccca5d4f1ef (patch)
treeec37ddbc7532f1828d4535ab375805a6f794cb7e /ewah/ewok.h
parentgit: avoid magic number with skip_prefix (diff)
downloadgit-de8118e153c5e527263086605e437ccca5d4f1ef.tar.xz
git-de8118e153c5e527263086605e437ccca5d4f1ef.zip
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewok.h')
0 files changed, 0 insertions, 0 deletions