diff options
author | Michael Schubert <mschub@elegosoft.com> | 2011-05-10 01:36:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-10 08:45:37 -0700 |
commit | 4f0accd638b8d27c44066e7a866315ca67cb07ec (patch) | |
tree | e2b6076941459234ece5d55848162f019fad6a8f /t/t4013 | |
parent | Git 1.7.5 (diff) | |
download | tgif-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/t4013')
0 files changed, 0 insertions, 0 deletions