Klasse GitTagDescription
java.lang.Object
com.github.koraktor.mavanagaiata.git.GitTagDescription
Represents information about a Git commit like supplied by
git describe
- Autor:
- Sebastian Staudt
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungGitTagDescription
(String abbrevCommitId, String nextTagName, int distance) Create a new description for the given information -
Methodenübersicht
-
Felddetails
-
DESCRIBE_FORMAT
- Siehe auch:
-
abbrevCommitId
-
distance
private int distance -
nextTagName
-
-
Konstruktordetails
-
GitTagDescription
Create a new description for the given information- Parameter:
abbrevCommitId
- The abbreviated commit IDnextTagName
- The name of the next tag reachable from the commitdistance
- The distance to the next tag
-
-
Methodendetails
-
getNextTagName
Returns the name of the next reachable tag- Gibt zurück:
- The name of the next tag
-
isTagged
public boolean isTagged()Returns whether the commit is tagged- Gibt zurück:
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.
-