Re: Getting first tag per branch for a commit

2017-06-26 Thread Orgad Shaneh
On Mon, Jun 26, 2017 at 12:54 AM, Junio C Hamano wrote: > Orgad Shaneh writes: > >> What I'd like to have is a way to tell the first tag per branch (or >> per merge) that the commit appeared on. > >> I think that this can be done by filtering out tags that

Re: Getting first tag per branch for a commit

2017-06-25 Thread Junio C Hamano
Junio C Hamano writes: > Orgad Shaneh writes: > >> What I'd like to have is a way to tell the first tag per branch (or >> per merge) that the commit appeared on. > >> I think that this can be done by filtering out tags that are connected >> to already listed

Re: Getting first tag per branch for a commit

2017-06-25 Thread Junio C Hamano
Orgad Shaneh writes: > What I'd like to have is a way to tell the first tag per branch (or > per merge) that the commit appeared on. > I think that this can be done by filtering out tags that are connected > to already listed tags by first-parent link. Yes. When one tag can

Getting first tag per branch for a commit

2017-06-25 Thread Orgad Shaneh
Hi, git describe --tags gives me the first tag that includes this commit. git tag --contains shows all the tags that contain the commit. git branch -a --contains shows the branches that include this commit. What I'd like to have is a way to tell the first tag per branch (or per merge) that