git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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_file

Is there any other kind of object that can be tagged ... and what is the purpose of this ?

Regards.
-- 
Yann Droneaud
OPTEYA
Previous: Junio C HamanoNext: Thomas Rast
Message 6 of 8 in “git-tag(1): we tag HEAD by default”
  1. git-tag(1): we tag HEAD by defaultThomas Rast, Apr 3, 2013
  2. Junio C HamanoApr 3, 2013
  3. Thomas RastApr 3, 2013
  4. Junio C HamanoApr 3, 2013
  5. Junio C HamanoApr 3, 2013
  6. Yann DroneaudApr 3, 2013
  7. Thomas RastApr 3, 2013
  8. Junio C HamanoApr 3, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.