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

Re: [PATCH] git-tag(1): we tag HEAD by default

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 3, 2013, 15:04 UTC
Message-ID
<7vzjxf64gn.fsf@alter.siamese.dyndns.org>
In-Reply-To
<137ebfa428b16497287c55e552372df1087f1588.1364999181.git.trast@inf.ethz.ch>
Thomas Rast <trast@inf.ethz.ch> writes:
Show 9 quoted lines
> 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.
>
> Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
> ---
>
> Prompted by a question on IRC about the default value.  Do we actually
> read our own docs? ;-)
Perhaps among us some of them are real men ;-)
Show 14 quoted lines
>  Documentation/git-tag.txt | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
> index e3032c4..697df50 100644
> --- a/Documentation/git-tag.txt
> +++ b/Documentation/git-tag.txt
> @@ -126,6 +126,11 @@ This option is only applicable when listing tags without annotation lines.
>  	linkgit:git-check-ref-format[1].  Some of these checks
>  	may restrict the characters allowed in a tag name.
>  
> +<commit>, <object>::
> +	The object that the new tag will refer to, usually a commit.
> +	Defaults to HEAD.
Shouldn't this be more like this:
    <commit>::
    <object>::
	Your explanation here...

Other than that, I think this is a reasonable change. Thanks.

Show 5 quoted lines
> +
> +
>  CONFIGURATION
>  -------------
>  By default, 'git tag' in sign-with-default mode (-s) will use your
Previous: Thomas RastNext: Thomas Rast
Message 2 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.