summaryrefslogtreecommitdiff
path: root/thread-utils.h
diff options
context:
space:
mode:
authorKaartic Sivaraam <kaartic.sivaraam@gmail.com>2017-12-01 11:29:33 +0530
committerJunio C Hamano <gitster@pobox.com>2017-12-07 15:06:46 -0800
commit255073ca59de7cd293e4a9d6c12831b6e505c37e (patch)
tree5ec00e5c15979825d0e878e1f0a765defc257d2d /thread-utils.h
parenta48ebe9724b01e53f23e2a44a85f52237aaf5c34 (diff)
downloadgit-255073ca59de7cd293e4a9d6c12831b6e505c37e.tar.gz
builtin/branch: strip refs/heads/ using skip_prefixks/branch-cleanup
Instead of hard-coding the offset strlen("refs/heads/") to skip the prefix "refs/heads/" use the skip_prefix() function which is more communicative and verifies that the string actually starts with that prefix. Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'thread-utils.h')
0 files changed, 0 insertions, 0 deletions