threads / discuss / 23616

How to achieve "git tag --merged"?

Subject: How to achieve "git tag --merged"?

## tl;dr

2 messages between Apr 27, 2010 and Apr 27, 2010.

replies: 1people: 2as markdown or json

Peter Krefting· Apr 27, 2010, 07:59 UTC · lore
Hi!

To look up which branches are contained by the current commit, "git branch --merged" is fine. Is there a way to do the same for tags?

I.e., I wish to list all tags that are set on commits that are ancestors of the current commit, basically the reverse of "git tag --contains", except I also want any tag that is exactly on the commit ID I enter.

-- 
\\// Peter - http://www.softwolves.pp.se/
Lars Hjemli· Apr 27, 2010, 11:26 UTC · re: Peter Krefting · lore

Re: How to achieve "git tag --merged"?

On Tue, Apr 27, 2010 at 09:59, Peter Krefting <peter@softwolves.pp.se> wrote:
> I wish to list all tags that are set on commits that are ancestors of
> the current commit
Try `git log --decorate --simplify-by-decoration --pretty=%d`

-- larsh

← back to recent threads