summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorMichael Schubert <mschub@elegosoft.com>2011-05-10 01:36:36 +0200
committerJunio C Hamano <gitster@pobox.com>2011-05-10 08:45:37 -0700
commit4f0accd638b8d27c44066e7a866315ca67cb07ec (patch)
treee2b6076941459234ece5d55848162f019fad6a8f /commit.h
parentec014eac0e9e6f30cbbca616090fa2ecf74797e7 (diff)
downloadgit-4f0accd638b8d27c44066e7a866315ca67cb07ec.tar.gz
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 'commit.h')
0 files changed, 0 insertions, 0 deletions