Class GitRepository
java.lang.Object
io.github.joke.conventionalversion.git.GitRepository
The repository reads the calculation needs, each one git command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvery commit reachable from HEAD, oldest first, with their paths.findTaggedCommit(String tag) The commit a tag points at, or empty when no such tag exists.headSha()protected booleanprotected booleanlogCommits(List<String> arguments) protected CommitparseCommit(String entry) parseCommits(String output) parsePaths(String text) The root of the working tree, which is where release-please keeps its configuration.void
-
Constructor Details
-
GitRepository
-
-
Method Details
-
verifyUsable
public void verifyUsable() -
isInsideWorkTree
@VisibleForTesting protected boolean isInsideWorkTree() -
isShallow
@VisibleForTesting protected boolean isShallow() -
repositoryRoot
The root of the working tree, which is where release-please keeps its configuration. -
headSha
-
findTaggedCommit
-
allCommits
Every commit reachable from HEAD, oldest first, with their paths.The whole first-parent history rather than a range, because each package's range starts at its own base commit and the ranges are sliced from this one read. Asking git per package would scale the number of processes with the number of packages.
-
withRange
-
logCommits
-
parseCommits
-
parseCommit
-
parsePaths
-