Klasse JGitCommit

java.lang.Object
com.github.koraktor.mavanagaiata.git.jgit.JGitCommit
Alle implementierten Schnittstellen:
GitCommit

class JGitCommit extends Object implements GitCommit
Wrapper around JGit's RevCommit object to represent a Git commit
Autor:
Sebastian Staudt
  • Felddetails

  • Konstruktordetails

    • JGitCommit

      JGitCommit(RevCommit commit)
      Creates a new instance from a JGit commit object
      Parameter:
      commit - The commit object to wrap
  • Methodendetails

    • equals

      public boolean equals(Object object)
      Compare an object to this one commit

      An object is equal to this commit object if it is an instance of JGitCommit and wraps around the same JGit commit object.

      Setzt außer Kraft:
      equals in Klasse Object
      Parameter:
      object - The object to check for equality
      Gibt zurück:
      true if the object is equal to this one
    • getAuthorDate

      public Date getAuthorDate()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the date when this commit has been authored
      Angegeben von:
      getAuthorDate in Schnittstelle GitCommit
      Gibt zurück:
      The author date of this commit
    • getAuthorEmailAddress

      public String getAuthorEmailAddress()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the email address of the author of this commit
      Angegeben von:
      getAuthorEmailAddress in Schnittstelle GitCommit
      Gibt zurück:
      The commit author's email address
    • getAuthorName

      public String getAuthorName()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the name of the author of this commit
      Angegeben von:
      getAuthorName in Schnittstelle GitCommit
      Gibt zurück:
      The commit author's name
    • getAuthorTimeZone

      public TimeZone getAuthorTimeZone()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the timezone in which this commit has been authored
      Angegeben von:
      getAuthorTimeZone in Schnittstelle GitCommit
      Gibt zurück:
      The author timezone of this commit
    • getCommitterDate

      public Date getCommitterDate()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the date when this commit has been committed
      Angegeben von:
      getCommitterDate in Schnittstelle GitCommit
      Gibt zurück:
      The committer date of this commit
    • getCommitterEmailAddress

      public String getCommitterEmailAddress()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the email address of the committer
      Angegeben von:
      getCommitterEmailAddress in Schnittstelle GitCommit
      Gibt zurück:
      The committer's email address
    • getCommitterName

      public String getCommitterName()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the name of the committer
      Angegeben von:
      getCommitterName in Schnittstelle GitCommit
      Gibt zurück:
      The committer's name
    • getCommitterTimeZone

      public TimeZone getCommitterTimeZone()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the timezone in which this commit has been committed
      Angegeben von:
      getCommitterTimeZone in Schnittstelle GitCommit
      Gibt zurück:
      The committer timezone of this commit
    • getId

      public String getId()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the SHA hash ID of this commit
      Angegeben von:
      getId in Schnittstelle GitCommit
      Gibt zurück:
      The SHA ID of this commit
    • getMessage

      public String getMessage()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the message of this commit
      Angegeben von:
      getMessage in Schnittstelle GitCommit
      Gibt zurück:
      The message of this commit
    • getMessageSubject

      public String getMessageSubject()
      Beschreibung aus Schnittstelle kopiert: GitCommit
      Returns the subject of the commit's message

      The message subject is the first line of the commit message.

      Angegeben von:
      getMessageSubject in Schnittstelle GitCommit
      Gibt zurück:
      The message subject of this commit
    • hashCode

      public int hashCode()
      Returns the hash code of the underlying commit's ID string
      Setzt außer Kraft:
      hashCode in Klasse Object
      Gibt zurück:
      The hash code for this commit
    • isMergeCommit

      public boolean isMergeCommit()
      Angegeben von:
      isMergeCommit in Schnittstelle GitCommit
      Gibt zurück:
      true if this commit is a merge commit