Top Description Inners Constructors Methods
org.eclipse.jgit.lib

public Class SubmoduleConfig

extends Object
Class Inheritance
Imports
org.eclipse.jgit.util.StringUtils

Submodule section of a Git configuration file.
Since
4.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
SubmoduleConfig.FetchRecurseSubmodulesMode

Config values for submodule.[name].fetchRecurseSubmodules.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SubmoduleConfigback to summary
public SubmoduleConfig()
org.eclipse.jgit.lib back to summary

public final Enum SubmoduleConfig.FetchRecurseSubmodulesMode

extends Enum<SubmoduleConfig.FetchRecurseSubmodulesMode>
implements ConfigEnum
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.lib.Config.ConfigEnum

Config values for submodule.[name].fetchRecurseSubmodules.

Field Summary

Modifier and TypeField and Description
private final String
public static final SubmoduleConfig.FetchRecurseSubmodulesMode
NO

Completely disable recursion.

public static final SubmoduleConfig.FetchRecurseSubmodulesMode
ON_DEMAND

Only recurse into a populated submodule when the superproject retrieves a commit that updates the submodule's reference to a commit that isn't already in the local submodule clone.

public static final SubmoduleConfig.FetchRecurseSubmodulesMode
YES

Unconditionally recurse into all populated submodules.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
matchConfigValue(String
the string to match
s
)

Implements org.eclipse.jgit.lib.Config.ConfigEnum.matchConfigValue.

Checks if the given string matches with enum value.

public String
toConfigValue()

Implements org.eclipse.jgit.lib.Config.ConfigEnum.toConfigValue.

Converts enumeration value into a string to be save in config.

public static SubmoduleConfig.FetchRecurseSubmodulesMode
public static SubmoduleConfig.FetchRecurseSubmodulesMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

configValueback to summary
private final String configValue
NOback to summary
public static final SubmoduleConfig.FetchRecurseSubmodulesMode NO

Completely disable recursion.

ON_DEMANDback to summary
public static final SubmoduleConfig.FetchRecurseSubmodulesMode ON_DEMAND

Only recurse into a populated submodule when the superproject retrieves a commit that updates the submodule's reference to a commit that isn't already in the local submodule clone.

YESback to summary
public static final SubmoduleConfig.FetchRecurseSubmodulesMode YES

Unconditionally recurse into all populated submodules.

Constructor Detail

FetchRecurseSubmodulesModeback to summary
private FetchRecurseSubmodulesMode(String configValue)

Method Detail

matchConfigValueback to summary
public boolean matchConfigValue(String s)

Implements org.eclipse.jgit.lib.Config.ConfigEnum.matchConfigValue.

Doc from org.eclipse.jgit.lib.Config.ConfigEnum.matchConfigValue.

Checks if the given string matches with enum value.

Parameters
s:String

the string to match

Returns:boolean

true if the given string matches enum value, false otherwise

Annotations
@Override
toConfigValueback to summary
public String toConfigValue()

Implements org.eclipse.jgit.lib.Config.ConfigEnum.toConfigValue.

Doc from org.eclipse.jgit.lib.Config.ConfigEnum.toConfigValue.

Converts enumeration value into a string to be save in config.

Returns:String

the enum value as config string

Annotations
@Override
valueOfback to summary
public static SubmoduleConfig.FetchRecurseSubmodulesMode valueOf(String name)
valuesback to summary
public static SubmoduleConfig.FetchRecurseSubmodulesMode[] values()