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

Re: [PATCH] document that git-tag can tag more than heads

From
KNKalle Olavi Niemitalo <kon@iki.fi>
Date
Jul 24, 2008, 08:48 UTC
Message-ID
<87prp3652z.fsf@Astalo.kon.iki.fi>
In-Reply-To
<Pine.GSO.4.62.0807240000470.23113@harper.uchicago.edu>
Jonathan Nieder <jrnieder@uchicago.edu> writes:
> Samuel Bronson had the idea of putting "<commit-ish> | <object>"
> for "<object>" because most tags point to commits (and for the
> rest of the manpage, all tags point to commits).
But the argument is not a <commit-ish>.  git.txt says:
        A command that takes a <commit-ish> argument ultimately
	wants to operate on a <commit> object but automatically
	dereferences <tag> objects that point at a <commit>.

git-tag does not automatically dereference tag objects that point to a commit. So if you want to use "|", then it should be "<commit> | <object>".

Previous: Jonathan NiederNext: Jonathan Nieder
Message 2 of 3 in “document that git-tag can tag more than heads”
  1. document that git-tag can tag more than headsJonathan Nieder, Jul 24, 2008
  2. Kalle Olavi NiemitaloJul 24, 2008
  3. document that git-tag can tag more than headsJonathan Nieder, Jul 24, 2008

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.