Class GitTagDescription
- java.lang.Object
-
- com.github.koraktor.mavanagaiata.git.GitTagDescription
-
public class GitTagDescription extends Object
Represents information about a Git commit like supplied bygit describe- Author:
- Sebastian Staudt
-
-
Field Summary
Fields Modifier and Type Field Description private StringabbrevCommitIdprivate static StringDESCRIBE_FORMATprivate intdistanceprivate GitTagnextTag
-
Constructor Summary
Constructors Constructor Description GitTagDescription(String abbrevCommitId, GitTag nextTag, int distance)Create a new description for the given information
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNextTagName()Returns the name of the next reachable tagbooleanisTagged()Returns whether the commit is taggedStringtoString()Returns the string representation of this description
-
-
-
Field Detail
-
DESCRIBE_FORMAT
private static final String DESCRIBE_FORMAT
- See Also:
- Constant Field Values
-
abbrevCommitId
private String abbrevCommitId
-
distance
private int distance
-
nextTag
private GitTag nextTag
-
-
Method Detail
-
getNextTagName
public String 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:
trueif the commit is tagged
-
-