Class JGitTagCandidate


  • class JGitTagCandidate
    extends Object
    This class represents a tag candidate which could be the latest tag in the
    • Field Detail

      • distance

        private int distance
    • Constructor Detail

      • JGitTagCandidate

        JGitTagCandidate​(JGitTag tag,
                         int distance,
                         RevFlag flag)
        Create a new tag candidate instance with the given attributes
        Parameters:
        tag - The candidate tag
        distance - The distance from the current commit
        flag - The flags used to determine ancestor commits
    • 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