summaryrefslogtreecommitdiff
path: root/Documentation/revisions.txt
diff options
context:
space:
mode:
authorKaartic Sivaraam <kaartic.sivaraam@gmail.com>2017-12-01 05:59:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-07 23:06:46 (GMT)
commit255073ca59de7cd293e4a9d6c12831b6e505c37e (patch)
tree5ec00e5c15979825d0e878e1f0a765defc257d2d /Documentation/revisions.txt
parenta48ebe9724b01e53f23e2a44a85f52237aaf5c34 (diff)
downloadgit-255073ca59de7cd293e4a9d6c12831b6e505c37e.zip
git-255073ca59de7cd293e4a9d6c12831b6e505c37e.tar.gz
git-255073ca59de7cd293e4a9d6c12831b6e505c37e.tar.bz2
builtin/branch: strip refs/heads/ using skip_prefix
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 'Documentation/revisions.txt')
0 files changed, 0 insertions, 0 deletions