java.lang.Object
org.eclipse.jgit.internal.storage.commitgraph.GraphCommits
The commits which are used by the commit-graph writer to:
- List commits in SHA1 order.
- Get the position of a specific SHA1 in the list.
- Since:
- 6.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphCommits
fromWalk
(ProgressMonitor pm, Set<? extends ObjectId> wants, RevWalk walk) Prepare and create the commits forCommitGraphWriter
from the RevWalk.iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
fromWalk
public static GraphCommits fromWalk(ProgressMonitor pm, @NonNull Set<? extends ObjectId> wants, @NonNull RevWalk walk) throws IOException Prepare and create the commits forCommitGraphWriter
from the RevWalk.- Parameters:
pm
- progress monitor.wants
- the list of wanted objects, writer walks commits starting at these. Must not benull
.walk
- the RevWalk to use. Must not benull
.- Returns:
- the commits' collection which are used by the commit-graph writer. Never null.
- Throws:
IOException
- if an error occurred
-
iterator
-