java.lang.Object
org.eclipse.jgit.lib.GcConfig
GC configuration settings.
- Since:
- 7.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether to pack refs during gc. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Config.SectionParser<GcConfig>Key forConfig.get(SectionParser). -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new gc configuration from the passed configuration.GcConfig(GcConfig.PackRefsMode packRefs) Create a new gc configuration with the given settings. -
Method Summary
Modifier and TypeMethodDescriptionGet the pack refs mode configuring which refs to pack during gc.
-
Field Details
-
KEY
Key forConfig.get(SectionParser).
-
-
Constructor Details
-
GcConfig
Create a new gc configuration from the passed configuration.- Parameters:
rc- git configuration
-
GcConfig
Create a new gc configuration with the given settings.- Parameters:
packRefs- whether to pack refs during gc
-
-
Method Details
-
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.
-