Thread (1 message) 1 message, 1 author, 2017-06-25

Re: Getting first tag per branch for a commit

From: Junio C Hamano <hidden>
Date: 2017-06-25 22:23:04

Junio C Hamano [off-list ref] writes:
Orgad Shaneh [off-list ref] writes:
quoted
What I'd like to have is a way to tell the first tag per branch (or
per merge) that the commit appeared on.
quoted
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 be reached by another tag, then the former is
definitely an earlier tag than the latter.

A trivial way to compute it would require O(n^2) invocations of "git
merge-base --is-ancestor".  Alternatively, I think you can perhaps
use "git merge-base --independent".
Ah, forget the latter.  "independent" is about solving the opposite
use case--it is to cull the ones that can be reached by other tips.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help