Klasse JGitTagCandidate
java.lang.Object
com.github.koraktor.mavanagaiata.git.jgit.JGitTagCandidate
This class represents a tag candidate which could be the latest tag in the
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungJGitTagCandidate
(JGitTag tag, int distance, RevFlag flag) Create a new tag candidate instance with the given attributes -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) int
getTag()
(Package privat) void
incrementDistanceIfExcludes
(RevCommit commit) Increments the distance of this tag candidate if the given commit has not been seen already
-
Felddetails
-
tag
-
flag
-
distance
private int distance
-
-
Konstruktordetails
-
JGitTagCandidate
Create a new tag candidate instance with the given attributes- Parameter:
tag
- The candidate tagdistance
- The distance from the current commitflag
- The flags used to determine ancestor commits
-
-
Methodendetails
-
getDistance
int getDistance()- Gibt zurück:
- The distance from the current commit
-
getTag
- Gibt zurück:
- The candidate tag
-
incrementDistanceIfExcludes
Increments the distance of this tag candidate if the given commit has not been seen already- Parameter:
commit
- The commit to check
-