void | fromText(String text) Clear this configuration and reset to the contents of the parsed string. |
T | get(SectionParser parser) Obtain a handle to a parsed set of configuration values. |
boolean | getBoolean(final String section, String subsection, final String name, final boolean defaultValue) Get a boolean value from the git config |
boolean | getBoolean(final String section, final String name, final boolean defaultValue) Get a boolean value from the git config |
T | getEnum(final String section, final String subsection, final String name, final T defaultValue) Parse an enumeration from the configuration. |
int | getInt(final String section, final String name, final int defaultValue) Obtain an integer value from the configuration. |
int | getInt(final String section, String subsection, final String name, final int defaultValue) Obtain an integer value from the configuration. |
long | getLong(final String section, String subsection, final String name, final long defaultValue) Obtain an integer value from the configuration. |
long | getLong(String section, String name, long defaultValue) Obtain an integer value from the configuration. |
Set | getNames(String section, String subsection) Get the list of names defined for this subsection |
Set | getNames(String section, boolean recursive) Get the list of names defined for this section |
Set | getNames(String section) Get the list of names defined for this section |
Set | getSections() Get the sections defined in this org.eclipse.jgit.lib.Config . |
String | getString(final String section, String subsection, final String name) Get string value or null if not found. |
String[] | getStringList(final String section, String subsection, final String name) Get a list of string values If this instance was created with a base, the base's values are returned first (if any). |
Set | getSubsections(String section) Get set of all subsections of specified section within this configuration and its base configuration |
long | getTimeUnit(String section, String subsection, String name, long defaultValue, TimeUnit wantUnit) Parse a numerical time unit, such as "1 minute", from the configuration. |
void | setBoolean(final String section, final String subsection, final String name, final boolean value) Add or modify a configuration value. |
void | setEnum(final String section, final String subsection, final String name, final T value) Add or modify a configuration value. |
void | setInt(final String section, final String subsection, final String name, final int value) Add or modify a configuration value. |
void | setLong(final String section, final String subsection, final String name, final long value) Add or modify a configuration value. |
void | setString(final String section, final String subsection, final String name, final String value) Add or modify a configuration value. |
void | setStringList(final String section, final String subsection, final String name, final List values) Set a configuration value. |
String | toText() Get this configuration, formatted as a Git style text file. |
void | unset(final String section, final String subsection, final String name) Remove a configuration value. |
void | unsetSection(String section, String subsection) Remove all configuration values under a single section. |