| Package | Description |
|---|---|
| fr.brouillard.oss.jgitver |
| Modifier and Type | Method and Description |
|---|---|
static GitVersionCalculator |
GitVersionCalculator.location(File gitRepositoryLocation)
Creates a
GitVersionCalculator for the git repository pointing to the given path. |
GitVersionCalculator |
GitVersionCalculator.setAutoIncrementPatch(boolean value)
When true, when the found tag to calculate a version for HEAD is a normal/annotated one, the semver patch version
of the tag is increased by one ; except when the tag is on the HEAD itself.
|
GitVersionCalculator |
GitVersionCalculator.setFindTagVersionPattern(String pattern)
Defines a regexp search pattern that will match tags identifying a version.
|
GitVersionCalculator |
GitVersionCalculator.setGitCommitIdLength(int gitCommitIdLength)
Defines how long the qualifier from SHA1 git commit has to be.
|
GitVersionCalculator |
GitVersionCalculator.setMavenLike(boolean mavenLike)
Activates the maven like mode.
|
GitVersionCalculator |
GitVersionCalculator.setNonQualifierBranches(String nonQualifierBranches)
Defines a comma separated list of branches for which no branch name qualifier will be used. default "master".
|
GitVersionCalculator |
GitVersionCalculator.setQualifierBranchingPolicies(BranchingPolicy... policies)
Sets as an array the policies that will be applied to try to build a qualifier from the branch of the HEAD.
|
GitVersionCalculator |
GitVersionCalculator.setQualifierBranchingPolicies(List<BranchingPolicy> policies)
Sets as a list the policies that will be applied to try to build a qualifier from the branch of the HEAD.
|
GitVersionCalculator |
GitVersionCalculator.setUseDefaultBranchingPolicy(boolean useDefaultBranchingPolicy)
When true, uses
BranchingPolicy.DEFAULT_FALLBACK as last BranchingPolicy. |
GitVersionCalculator |
GitVersionCalculator.setUseDirty(boolean useDirty)
When true, append a qualifier with the "dirty" qualifier if the repository is in a dirty state (ie with
uncommited changes or new files)
|
GitVersionCalculator |
GitVersionCalculator.setUseDistance(boolean useDistance)
When true, append a qualifier with the distance between the HEAD commit and the found commit with a version tag.
|
GitVersionCalculator |
GitVersionCalculator.setUseGitCommitId(boolean useGitCommitId)
When true, append the git commit id (SHA1) to the version.
|
GitVersionCalculator |
GitVersionCalculator.setUseGitCommitTimestamp(boolean useGitCommitTimestamp)
When true, append the git commit timestamp to the version.
|
GitVersionCalculator |
GitVersionCalculator.setUseLongFormat(boolean useLongFormat)
When true describes commits hash with long format pattern, ie preceded with the letter 'g'.
|
Copyright © 2016–2018 Matthieu Brouillard. All rights reserved.