Re: name-rev does not show the shortest path
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 25, 2007, 15:04 UTC
- Message-ID
- <Pine.LNX.4.64.0708251701150.16728@wbgn129.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7v6434eq9o.fsf@gitster.siamese.dyndns.org>
Hi,
On Fri, 24 Aug 2007, Junio C Hamano wrote:
> I _think_ name-rev goes for shorter-to-type tags and does not have any > other heuristics. Dscho?
I briefly looked into this, and did not find out why it is behaving that way. It _should_ pick the closer one with this code:
} else if (name->merge_traversals > merge_traversals ||
(name->merge_traversals == merge_traversals &&
name->generation > generation)) {However, it did not even get to that code in my tests. I'll have to look at that problem closer in a quiet moment (which I will not have for at least another 24 hours).
Ciao, Dscho