Module org.eclipse.jgit
Class CommitGraphWriter
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.commitgraph.CommitGraphWriter
-
public class CommitGraphWriter extends Object
Writes a commit-graph formatted file.- Since:
- 6.5
-
-
Constructor Summary
Constructors Constructor Description CommitGraphWriter(GraphCommits graphCommits)Create commit-graph writer for these commits.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(ProgressMonitor monitor, OutputStream commitGraphStream)Write commit-graph to the supplied stream.
-
-
-
Constructor Detail
-
CommitGraphWriter
public CommitGraphWriter(@NonNull GraphCommits graphCommits)
Create commit-graph writer for these commits.- Parameters:
graphCommits- the commits which will be writen to the commit-graph.
-
-
Method Detail
-
write
public void write(@NonNull ProgressMonitor monitor, @NonNull OutputStream commitGraphStream) throws IOException
Write commit-graph to the supplied stream.- Parameters:
monitor- progress monitor to report the number of items written.commitGraphStream- output stream of commit-graph data. The stream should be buffered by the caller. The caller is responsible for closing the stream.- Throws:
IOException
-
-