Class JGitTagCandidate
- java.lang.Object
-
- com.github.koraktor.mavanagaiata.git.jgit.JGitTagCandidate
-
class JGitTagCandidate extends Object
This class represents a tag candidate which could be the latest tag in the
-
-
Constructor Summary
Constructors Constructor Description JGitTagCandidate(JGitTag tag, int distance, RevFlag flag)Create a new tag candidate instance with the given attributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intgetDistance()JGitTaggetTag()(package private) voidincrementDistanceIfExcludes(RevCommit commit)Increments the distance of this tag candidate if the given commit has not been seen already
-
-
-
Method Detail
-
getDistance
int getDistance()
- Returns:
- The distance from the current commit
-
getTag
public JGitTag getTag()
- Returns:
- The candidate tag
-
incrementDistanceIfExcludes
void incrementDistanceIfExcludes(RevCommit commit)
Increments the distance of this tag candidate if the given commit has not been seen already- Parameters:
commit- The commit to check
-
-