Class DfsBundleWriter

java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsBundleWriter

public class DfsBundleWriter extends Object
Writes DfsRepository to a Git bundle.
  • Constructor Details

    • DfsBundleWriter

      private DfsBundleWriter()
  • Method Details

    • writeEntireRepositoryAsBundle

      public static void writeEntireRepositoryAsBundle(ProgressMonitor pm, OutputStream os, DfsRepository db) throws 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:
      IOException - thrown if the output stream throws one.