Klasse JGitCommit
java.lang.Object
com.github.koraktor.mavanagaiata.git.jgit.JGitCommit
- Alle implementierten Schnittstellen:
GitCommit
Wrapper around JGit's
RevCommit
object to represent a Git commit- Autor:
- Sebastian Staudt
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected PersonIdent
protected RevCommit
private PersonIdent
-
Konstruktorübersicht
KonstruktorBeschreibungJGitCommit
(RevCommit commit) Creates a new instance from a JGit commit object -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
Compare an object to this one commitReturns the date when this commit has been authoredReturns the email address of the author of this commitReturns the name of the author of this commitReturns the timezone in which this commit has been authoredReturns the date when this commit has been committedReturns the email address of the committerReturns the name of the committerReturns the timezone in which this commit has been committedgetId()
Returns the SHA hash ID of this commitReturns the message of this commitReturns the subject of the commit's messageint
hashCode()
Returns the hash code of the underlying commit's ID stringboolean
-
Felddetails
-
author
-
commit
-
committer
-
-
Konstruktordetails
-
JGitCommit
JGitCommit(RevCommit commit) Creates a new instance from a JGit commit object- Parameter:
commit
- The commit object to wrap
-
-
Methodendetails
-
equals
Compare an object to this one commitAn object is equal to this commit object if it is an instance of
JGitCommit
and wraps around the same JGit commit object. -
getAuthorDate
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the date when this commit has been authored- Angegeben von:
getAuthorDate
in SchnittstelleGitCommit
- Gibt zurück:
- The author date of this commit
-
getAuthorEmailAddress
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the email address of the author of this commit- Angegeben von:
getAuthorEmailAddress
in SchnittstelleGitCommit
- Gibt zurück:
- The commit author's email address
-
getAuthorName
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the name of the author of this commit- Angegeben von:
getAuthorName
in SchnittstelleGitCommit
- Gibt zurück:
- The commit author's name
-
getAuthorTimeZone
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the timezone in which this commit has been authored- Angegeben von:
getAuthorTimeZone
in SchnittstelleGitCommit
- Gibt zurück:
- The author timezone of this commit
-
getCommitterDate
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the date when this commit has been committed- Angegeben von:
getCommitterDate
in SchnittstelleGitCommit
- Gibt zurück:
- The committer date of this commit
-
getCommitterEmailAddress
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the email address of the committer- Angegeben von:
getCommitterEmailAddress
in SchnittstelleGitCommit
- Gibt zurück:
- The committer's email address
-
getCommitterName
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the name of the committer- Angegeben von:
getCommitterName
in SchnittstelleGitCommit
- Gibt zurück:
- The committer's name
-
getCommitterTimeZone
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the timezone in which this commit has been committed- Angegeben von:
getCommitterTimeZone
in SchnittstelleGitCommit
- Gibt zurück:
- The committer timezone of this commit
-
getId
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the SHA hash ID of this commit -
getMessage
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the message of this commit- Angegeben von:
getMessage
in SchnittstelleGitCommit
- Gibt zurück:
- The message of this commit
-
getMessageSubject
Beschreibung aus Schnittstelle kopiert:GitCommit
Returns the subject of the commit's messageThe message subject is the first line of the commit message.
- Angegeben von:
getMessageSubject
in SchnittstelleGitCommit
- Gibt zurück:
- The message subject of this commit
-
hashCode
public int hashCode()Returns the hash code of the underlying commit's ID string -
isMergeCommit
public boolean isMergeCommit()- Angegeben von:
isMergeCommit
in SchnittstelleGitCommit
- Gibt zurück:
true
if this commit is a merge commit
-