Class CommitGraphWriter


  • public class CommitGraphWriter
    extends Object
    Writes a commit-graph formatted file.
    Since:
    6.5
    • 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