Class JGitCommit
- java.lang.Object
-
- com.github.koraktor.mavanagaiata.git.jgit.JGitCommit
-
-
Field Summary
Fields Modifier and Type Field Description protected PersonIdentauthorprotected RevCommitcommitprivate PersonIdentcommitter
-
Constructor Summary
Constructors Constructor Description JGitCommit(RevCommit commit)Creates a new instance from a JGit commit object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Compare an object to this one commitDategetAuthorDate()Returns the date when this commit has been authoredStringgetAuthorEmailAddress()Returns the email address of the author of this commitStringgetAuthorName()Returns the name of the author of this commitTimeZonegetAuthorTimeZone()Returns the timezone in which this commit has been authoredDategetCommitterDate()Returns the date when this commit has been committedStringgetCommitterEmailAddress()Returns the email address of the committerStringgetCommitterName()Returns the name of the committerTimeZonegetCommitterTimeZone()Returns the timezone in which this commit has been committedStringgetId()Returns the SHA hash ID of this commitStringgetMessage()Returns the message of this commitStringgetMessageSubject()Returns the subject of the commit's messageinthashCode()Returns the hash code of the underlying commit's ID stringbooleanisMergeCommit()
-
-
-
Field Detail
-
author
protected PersonIdent author
-
commit
protected RevCommit commit
-
committer
private PersonIdent committer
-
-
Constructor Detail
-
JGitCommit
JGitCommit(RevCommit commit)
Creates a new instance from a JGit commit object- Parameters:
commit- The commit object to wrap
-
-
Method Detail
-
equals
public boolean equals(Object object)
Compare an object to this one commitAn object is equal to this commit object if it is an instance of
JGitCommitand wraps around the same JGit commit object.
-
getAuthorDate
public Date getAuthorDate()
Description copied from interface:GitCommitReturns the date when this commit has been authored- Specified by:
getAuthorDatein interfaceGitCommit- Returns:
- The author date of this commit
-
getAuthorEmailAddress
public String getAuthorEmailAddress()
Description copied from interface:GitCommitReturns the email address of the author of this commit- Specified by:
getAuthorEmailAddressin interfaceGitCommit- Returns:
- The commit author's email address
-
getAuthorName
public String getAuthorName()
Description copied from interface:GitCommitReturns the name of the author of this commit- Specified by:
getAuthorNamein interfaceGitCommit- Returns:
- The commit author's name
-
getAuthorTimeZone
public TimeZone getAuthorTimeZone()
Description copied from interface:GitCommitReturns the timezone in which this commit has been authored- Specified by:
getAuthorTimeZonein interfaceGitCommit- Returns:
- The author timezone of this commit
-
getCommitterDate
public Date getCommitterDate()
Description copied from interface:GitCommitReturns the date when this commit has been committed- Specified by:
getCommitterDatein interfaceGitCommit- Returns:
- The committer date of this commit
-
getCommitterEmailAddress
public String getCommitterEmailAddress()
Description copied from interface:GitCommitReturns the email address of the committer- Specified by:
getCommitterEmailAddressin interfaceGitCommit- Returns:
- The committer's email address
-
getCommitterName
public String getCommitterName()
Description copied from interface:GitCommitReturns the name of the committer- Specified by:
getCommitterNamein interfaceGitCommit- Returns:
- The committer's name
-
getCommitterTimeZone
public TimeZone getCommitterTimeZone()
Description copied from interface:GitCommitReturns the timezone in which this commit has been committed- Specified by:
getCommitterTimeZonein interfaceGitCommit- Returns:
- The committer timezone of this commit
-
getId
public String getId()
Description copied from interface:GitCommitReturns the SHA hash ID of this commit
-
getMessage
public String getMessage()
Description copied from interface:GitCommitReturns the message of this commit- Specified by:
getMessagein interfaceGitCommit- Returns:
- The message of this commit
-
getMessageSubject
public String getMessageSubject()
Description copied from interface:GitCommitReturns the subject of the commit's messageThe message subject is the first line of the commit message.
- Specified by:
getMessageSubjectin interfaceGitCommit- Returns:
- 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()
- Specified by:
isMergeCommitin interfaceGitCommit- Returns:
trueif this commit is a merge commit
-
-