Class GcConfig

java.lang.Object
org.eclipse.jgit.lib.GcConfig

public class GcConfig extends Object
GC configuration settings.
Since:
7.6
  • Field Details

  • Constructor Details

    • GcConfig

      public GcConfig(Config rc)
      Create a new gc configuration from the passed configuration.
      Parameters:
      rc - git configuration
    • GcConfig

      public GcConfig(GcConfig.PackRefsMode packRefs)
      Create a new gc configuration with the given settings.
      Parameters:
      packRefs - whether to pack refs during gc
  • Method Details

    • getPackRefs

      public GcConfig.PackRefsMode getPackRefs()
      Get the pack refs mode configuring which refs to pack during gc.
      Returns:
      the pack refs mode configuring which refs to pack during gc.