public final class RevWalkUtils
extends java.lang.Object
RevWalk
.public static int count(RevWalk walk, RevCommit start, RevCommit end) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
start
until a commit that is reachable from end
is encountered. In
other words, count the number of commits that are in start
,
but not in end
.
Note that this method calls RevWalk.reset()
at the beginning.
Also note that the existing rev filter on the walk is left as-is, so be
sure to set the right rev filter before calling this method.
walk
- the rev walk to usestart
- the commit to start counting fromend
- the commit where counting should end, or null if counting
should be done until there are no more commitsMissingObjectException
IncorrectObjectTypeException
java.io.IOException
Copyright © 2012. All Rights Reserved.