Class GitTagDescription
java.lang.Object
com.github.koraktor.mavanagaiata.git.GitTagDescription
Represents information about a Git commit like supplied by
git describe
- Author:
- Sebastian Staudt
-
Constructor Summary
ConstructorsConstructorDescriptionGitTagDescription
(String abbrevCommitId, String nextTagName, int distance) Create a new description for the given information -
Method Summary
-
Constructor Details
-
GitTagDescription
Create a new description for the given information- Parameters:
abbrevCommitId
- The abbreviated commit IDnextTagName
- The name of the next tag reachable from the commitdistance
- The distance to the next tag
-
-
Method Details
-
getNextTagName
Returns the name of the next reachable tag- Returns:
- The name of the next tag
-
isTagged
public boolean isTagged()Returns whether the commit is tagged- Returns:
true
if the commit is tagged
-
toString
Returns the string representation of this descriptionThis includes the abbreviated commit ID and (if available) the distance to and the name of the next tag.
-