| Modifier and Type | Field and Description |
|---|---|
| private int | abbrev
All other possible abbreviation lengths. |
| public static final int | MIN_ABBREV
The minimum value of abbrev |
| public static final AbbrevConfig | NO
No abbreviation |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static AbbrevConfig | Returns: appropriate value computed based on the approximate number of packed objects in a repositorythe repository the AbbrevConfig shall be computed for repo)An appropriate value is computed based on the approximate number of packed objects in a repository, which hopefully is enough for abbreviated object names to stay unique for some time. |
| public static int | Returns: core.abbrev capped to range between minimum of 4 and number of hex-digits of a full object idconfigured number of hex-digits to abbreviate object ids to len)Cap configured core.abbrev to range between minimum of 4 and number of hex-digits of a full object id. |
| public int | Returns: the configured abbreviation length for object idsGet the configured abbreviation length for object ids. |
| public static AbbrevConfig | Returns: the parsed AbbrevConfigrepository repo)Parse string value of core.abbrev git option for a given repository |
| public String |
| abbrev | back to summary |
|---|---|
| private int abbrev All other possible abbreviation lengths. Valid range 4 to number of hex-digits of an unabbreviated object id (40 for SHA1 object ids, jgit doesn't support SHA256 yet). | |
| MIN_ABBREV | back to summary |
|---|---|
| public static final int MIN_ABBREV The minimum value of abbrev | |
| NO | back to summary |
|---|---|
| public static final AbbrevConfig NO No abbreviation | |
| VALUE_AUTO | back to summary |
|---|---|
| private static final String VALUE_AUTO | |
| VALUE_NO | back to summary |
|---|---|
| private static final String VALUE_NO | |
| AbbrevConfig | back to summary |
|---|---|
| private AbbrevConfig(int abbrev) Create an
| |
| auto | back to summary |
|---|---|
| private static AbbrevConfig auto(Repository repo) An appropriate value is computed based on the approximate number of packed objects in a repository, which hopefully is enough for abbreviated object names to stay unique for some time.
| |
| capAbbrev | back to summary |
|---|---|
| public static int capAbbrev(int len) Cap configured core.abbrev to range between minimum of 4 and number of hex-digits of a full object id.
| |
| get | back to summary |
|---|---|
| public int get() Get the configured abbreviation length for object ids.
| |
| parseFromConfig | back to summary |
|---|---|
| public static AbbrevConfig parseFromConfig(Repository repo) throws InvalidConfigurationException Parse string value of core.abbrev git option for a given repository
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |