# How to achieve "git tag --merged"?

2 messages from 2010-04-27 to 2010-04-27. Participants: Peter Krefting, Lars Hjemli.
Thread: https://gitlist.dev/t/23616

## Peter Krefting, 2010-04-27 07:59

Subject: How to achieve "git tag --merged"?
Message-ID: <alpine.DEB.2.00.1004270846280.4769@ds9.cixit.se>
URL: https://gitlist.dev/e/alpine.DEB.2.00.1004270846280.4769%40ds9.cixit.se

```
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, 2010-04-27 11:26

Subject: Re: How to achieve "git tag --merged"?
Message-ID: <t2i8c5c35581004270426mf5cb8d2dp81e84506d088108d@mail.gmail.com>
URL: https://gitlist.dev/e/t2i8c5c35581004270426mf5cb8d2dp81e84506d088108d%40mail.gmail.com
In-Reply-To: <alpine.DEB.2.00.1004270846280.4769@ds9.cixit.se>

```
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

```
