From: Yann Droneaud Date: Wed, 03 Apr 2013 15:18:09 GMT Subject: Re: [PATCH] git-tag(1): we tag HEAD by default Message-ID: <3b24bc742b9738531d707932a9775c98@meuh.org> In-Reply-To: <137ebfa428b16497287c55e552372df1087f1588.1364999181.git.trast@inf.ethz.ch> Hi, Le 03.04.2013 16:27, Thomas Rast a écrit : > The | argument is actually not explained anywhere > (except implicitly in the description of an unannotated tag). Write > a > little explanation, in particular to cover the default. > +, :: > + The object that the new tag will refer to, usually a commit. > + Defaults to HEAD. > + > + This puzzled me a lot, so I try various configuration: - I was able to create an annotated tag on an annotated tag (this can be recursively) git tag -a -m "tagged a tag" test_tag_tag v1.8.2 git show test_tag_tag - I was able to tag a file git tag -a -m "tagged a file" test_tag_file `git ls-tree HEAD | awk '{ print $3; exit; }'` git show test_tag_file git show -p test_tag_file Is there any other kind of object that can be tagged ... and what is the purpose of this ? Regards. -- Yann Droneaud OPTEYA