Class DfsBundleWriter


  • public class DfsBundleWriter
    extends java.lang.Object
    Writes DfsRepository to a Git bundle.
    • Constructor Detail

      • DfsBundleWriter

        private DfsBundleWriter()
    • Method Detail

      • writeEntireRepositoryAsBundle

        public static void writeEntireRepositoryAsBundle​(ProgressMonitor pm,
                                                         java.io.OutputStream os,
                                                         DfsRepository db)
                                                  throws java.io.IOException
        Writes the entire DfsRepository to a Git bundle.

        This method try to avoid traversing the pack files as much as possible and dumps all objects as-is to a Git bundle.

        Parameters:
        pm - progress monitor
        os - Git bundle output
        db - repository
        Throws:
        java.io.IOException - thrown if the output stream throws one.