Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] tag: add -i and --introduced modifier for --contains

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:00:47

Jan Kara [off-list ref] writes:
On Thu 17-04-14 10:04:52, Junio C Hamano wrote:
quoted
So perhaps the rule should be updated to do something like:

    - find candidate tags that can be used to "describe --contains"
      the commit A, yielding v3.4, v3.5 (not shown), and v9.0;

    - among the candidate tags, cull the ones that contain another
      candidate tag, rejecting v3.5 (not shown) and v9.0;

    - among the surviving tags, pick the closest.
...
Regarding the strategy what to select when there are several
remaining tags after first two steps I would prefer to output all such
tags.
Yes, as I mentioned in another subthread ($gmane/246488), different
projects want different tie-breaking rules at the third step, and
your "show all to give more information to the user" could be
another mode of operation.

I offhand do not think the current name-rev machinery is set up to
compute your variant easily, though.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help