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

Re: gitk and tags

From
SBSanti Béjar <santi@agolina.net>
Date
Feb 12, 2009, 17:41 UTC
Message-ID
<adf1fd3d0902120941r6c0be562r27a67e978c7cddd7@mail.gmail.com>
In-Reply-To
<OF13533D2E.931134C6-ONC125755B.005E1480-C125755B.005EAB59@transmode.se>
2009/2/12 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>:
Show 6 quoted lines
> Is there any way to make gitk display tags when specifying a path?
> example: gitk drivers/usb/gadget
> will show me all commits that touches this directory but I can't make gitk
> show
> me where the tags are so I can see which commits made it into what
> release.
With a recent git you can say:
gitk --simplify-by-decoration drivers/usb/gadget
it will show the commits modifying the file and with a ref (tag or branch).
With the command line you can use:
git tag --contains <commit> # only in git v1.6.2-rc0
it lists all the tags that contain the given commit,
or
git describe --contains <commit>
that tells which is the nearer tag that contains the given commit.

HTH, Santi

Previous: Joakim Tjernlund
Message 2 of 2 in “gitk and tags”
  1. Joakim TjernlundFeb 12, 2009
  2. Santi BéjarFeb 12, 2009

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.