diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-08-27 12:37:33 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-27 22:36:43 -0700 |
commit | ac076c29ae8d57b72abe27f573061ea7b2eeed57 (patch) | |
tree | 4b3d9e4fa5dfd9f7e986e366a7fe0e70a5e886cb /builtin-init-db.c | |
parent | 2b9232cc23a86f650cc1b93a35cce6ad59a8d782 (diff) | |
download | git-ac076c29ae8d57b72abe27f573061ea7b2eeed57.tar.gz git-ac076c29ae8d57b72abe27f573061ea7b2eeed57.tar.xz |
name-rev: Fix non-shortest description
Uwe Kleine-König noticed that under certain circumstances, name-rev
picked a non-optimal tag. Jeff King analyzed that name-rev only
takes into account the number of merge traversals, and then the
_last_ number in the description.
As an easy way to fix it, use a weighting factor for merge traversals:
A merge traversal is now made 65535 times more expensive than a
first-parent traversal.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-init-db.c')
0 files changed, 0 insertions, 0 deletions