Module org.eclipse.jgit
Class CommitGraphWriter
java.lang.Object
org.eclipse.jgit.internal.storage.commitgraph.CommitGraphWriter
Writes a commit-graph formatted file.
- Since:
- 6.5
-
Constructor Summary
ConstructorsConstructorDescriptionCommitGraphWriter(GraphCommits graphCommits) Create commit-graph writer for these commits. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(ProgressMonitor monitor, OutputStream commitGraphStream) Write commit-graph to the supplied stream.
-
Constructor Details
-
CommitGraphWriter
Create commit-graph writer for these commits.- Parameters:
graphCommits- the commits which will be writen to the commit-graph.
-
-
Method Details
-
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
-