diff options
author | Kaartic Sivaraam <kaartic.sivaraam@gmail.com> | 2017-12-01 11:29:33 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-07 15:06:46 -0800 |
commit | 255073ca59de7cd293e4a9d6c12831b6e505c37e (patch) | |
tree | 5ec00e5c15979825d0e878e1f0a765defc257d2d /Documentation/pull-fetch-param.txt | |
parent | branch: update warning message shown when copying a misnamed branch (diff) | |
download | tgif-255073ca59de7cd293e4a9d6c12831b6e505c37e.tar.xz |
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/pull-fetch-param.txt')
0 files changed, 0 insertions, 0 deletions