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
path: root/diff.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-18 23:49:44 +0400
committerJunio C Hamano <gitster@pobox.com>2014-06-20 21:45:18 +0400
commitd12c24d2a96f8f9aeb100b800d8fb217f28a6a2a (patch)
treeb2e8919e3bf4e902d41ee87a3f521639eca8784d /diff.c
parent97313bef2a16eb8b3d40830204c20c34ba9d6554 (diff)
daemon: use skip_prefix to avoid magic numbers
Like earlier cases, we can use skip_prefix to avoid magic numbers that must match the length of starts_with prefixes. However, the numbers are a little more complicated here, as we keep parsing past the prefix. We can solve it by keeping a running pointer as we parse; its final value is the location we want. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions