diff options
author | Jeff King <peff@peff.net> | 2017-02-15 16:40:52 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-15 13:50:31 -0800 |
commit | d3cc5f4c44eeacca556f9ae0972837a84e72f288 (patch) | |
tree | 9c3fee20aa69e546af697fcc4b2063ba6ba9d421 /Documentation/howto/update-hook-example.txt | |
parent | show-branch: store resolved head in heap buffer (diff) | |
download | tgif-d3cc5f4c44eeacca556f9ae0972837a84e72f288.tar.xz |
show-branch: use skip_prefix to drop magic numbers
We make several starts_with() calls, only to advance
pointers. This is exactly what skip_prefix() is for, which
lets us avoid manually-counted magic numbers.
Helped-by: Pranit Bauva <pranit.bauva@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/howto/update-hook-example.txt')
0 files changed, 0 insertions, 0 deletions