summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-01-16 09:46:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-01-17 00:26:26 (GMT)
commit5a7d5b683f869d3e3884a89775241afa515da9e7 (patch)
treecf3930dd84c09d9bacdda4c993aab526e7bd493e /userdiff.c
parent920b691fe4da8115f9b79901411c0cc5fff17efe (diff)
downloadgit-5a7d5b683f869d3e3884a89775241afa515da9e7.zip
git-5a7d5b683f869d3e3884a89775241afa515da9e7.tar.gz
git-5a7d5b683f869d3e3884a89775241afa515da9e7.tar.bz2
clone: allow --branch to take a tag
Because a tag ref cannot be put to HEAD, HEAD will become detached. This is consistent with "git checkout <tag>". This is mostly useful in shallow clone, where it allows you to clone a tag in addtion to branches. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'userdiff.c')
0 files changed, 0 insertions, 0 deletions