Klasse GitTagDescription

java.lang.Object
com.github.koraktor.mavanagaiata.git.GitTagDescription

public class GitTagDescription extends Object
Represents information about a Git commit like supplied by git describe
Autor:
Sebastian Staudt
  • Felddetails

    • DESCRIBE_FORMAT

      private static final String DESCRIBE_FORMAT
      Siehe auch:
    • abbrevCommitId

      private String abbrevCommitId
    • distance

      private int distance
    • nextTagName

      private String nextTagName
  • Konstruktordetails

    • GitTagDescription

      public GitTagDescription(String abbrevCommitId, String nextTagName, int distance)
      Create a new description for the given information
      Parameter:
      abbrevCommitId - The abbreviated commit ID
      nextTagName - The name of the next tag reachable from the commit
      distance - The distance to the next tag
  • Methodendetails

    • getNextTagName

      public String 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

      public String toString()
      Returns the string representation of this description

      This includes the abbreviated commit ID and (if available) the distance to and the name of the next tag.

      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      The string representation of this description