]> source.dussan.org Git - jgit.git/commit
NameRevCommand: Don't use merge cost for first parent 02/11202/3
authorDave Borowitz <dborowitz@google.com>
Fri, 15 Mar 2013 15:10:59 +0000 (08:10 -0700)
committerDave Borowitz <dborowitz@google.com>
Fri, 15 Mar 2013 15:58:14 +0000 (08:58 -0700)
commitbba74ba2e0af10db4d75258819ca0a1b4307e377
treec7a8602fa8c063a8d18a3c648de4e35a165fadb7
parent0adcbba1495b2f677461c526a8a191c236064f7c
NameRevCommand: Don't use merge cost for first parent

Treat first parent traversals as 1 and higher parents as MERGE_COST,
to match git name-rev. Allow overriding the merge cost during tests to
avoid creating 2^16 commits on the fly.

Change-Id: I0175e0c3ab1abe6722e4241abe2f106d1fe92a69
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NameRevCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/NameRevCommand.java