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 TypeMethodDescriptionMessages of every commit reachable from HEAD, oldest first.commitMessagesSince(String sinceCommit) Messages of the commits reachable from HEAD but not fromsinceCommit, oldest first.findTaggedCommit(String tag) The commit a tag points at, or empty when no such tag exists.headSha()protected booleanprotected booleanlogMessages(List<String> arguments) splitRecords(String output) void
-
Constructor Details
-
GitRepository
-
-
Method Details
-
verifyUsable
public void verifyUsable() -
isInsideWorkTree
@VisibleForTesting protected boolean isInsideWorkTree() -
isShallow
@VisibleForTesting protected boolean isShallow() -
headSha
-
findTaggedCommit
-
commitMessagesSince
Messages of the commits reachable from HEAD but not fromsinceCommit, oldest first.--first-parentis a no-op on the linear history this targets and is the correct reading on a repository that uses merge commits, so it is never worse than the alternative. -
allCommitMessages
-
logMessages
-
splitRecords
-