summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Michael Schubert <mschub@elegosoft.com>2011-05-10 01:36:36 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-10 08:45:37 -0700
commit4f0accd638b8d27c44066e7a866315ca67cb07ec (patch)
treee2b6076941459234ece5d55848162f019fad6a8f /t
parentGit 1.7.5 (diff)
downloadtgif-4f0accd638b8d27c44066e7a866315ca67cb07ec.tar.xz
tag: disallow '-' as tag name
Disallow '-' as tag name, as well as tag names starting with '-', as it would be cumbersome to "git checkout tags/-" because "git checkout -" is to switch to the previous branch. Add strbuf_check_tag_ref() as helper to check a refname for a tag. Signed-off-by: Michael Schubert <mschub@elegosoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions