Re: [PATCH] git-tag(1): we tag HEAD by default
- From
Yann Droneaud <ydroneaud@opteya.com>
- Date
- Apr 3, 2013, 15:18 UTC
- 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 <commit>|<object> 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.
Show 5 quoted lines
> +<commit>, <object>:: > + 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_fileIs there any other kind of object that can be tagged ... and what is the purpose of this ?
Regards.
-- Yann Droneaud OPTEYA