Package hudson.plugins.repo
Class ChangeLogEntry
- java.lang.Object
-
- hudson.scm.ChangeLogSet.Entry
-
- hudson.plugins.repo.ChangeLogEntry
-
public class ChangeLogEntry extends ChangeLogSet.Entry
A POJO containing information about a single change (git commit) in a git repository. These objects are used to build the change log page.
-
-
Constructor Summary
Constructors Constructor Description ChangeLogEntry(String path, String serverPath, String revision, String authorName, String authorEmail, String authorDate, String committerName, String committerEmail, String committerDate, String commitText, List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile> modifiedFiles)
Creates a new REpoChangeLogEntry object containing all the details about a git commit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile>
getAffectedFiles()
Returns a set of paths in the workspace that was affected by this change.Collection<String>
getAffectedPaths()
User
getAuthor()
String
getAuthorDate()
Returns the date this commit was authored.String
getAuthorEmail()
Returns the author's email address.String
getAuthorName()
Returns the author's name.String
getCommitterDate()
Returns the date this patch was committed.String
getCommitterEmail()
Returns the committer's email address.String
getCommitterName()
Returns the committer's name.String
getCommitText()
Returns the commit message.List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile>
getModifiedFiles()
Returns a list of files modified by this change.String
getMsg()
String
getPath()
Returns the client-side project path.String
getRevision()
Returns the SHA-1 revision.String
getServerPath()
Returns the server-side project path.void
setParent(ChangeLogSet parent)
String
toString()
Converts this ChangeLogEntry to a string for debugging.-
Methods inherited from class hudson.scm.ChangeLogSet.Entry
getCommitId, getMsgAnnotated, getMsgEscaped, getParent, getTimestamp
-
-
-
-
Constructor Detail
-
ChangeLogEntry
public ChangeLogEntry(String path, String serverPath, String revision, String authorName, String authorEmail, String authorDate, String committerName, String committerEmail, String committerDate, String commitText, List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile> modifiedFiles)
Creates a new REpoChangeLogEntry object containing all the details about a git commit.- Parameters:
path
- The path to the project from the client-sideserverPath
- The path to the project on the server-siderevision
- The SHA-1 revision of the projectauthorName
- The name of the author of the commitauthorEmail
- The author's email addressauthorDate
- The author date stringcommitterName
- The name of the committercommitterEmail
- The committer's email addresscommitterDate
- The date of the commitcommitText
- The commit message textmodifiedFiles
- A list of ModifiedFiles impacted by the commit
-
-
Method Detail
-
toString
public String toString()
Converts this ChangeLogEntry to a string for debugging.
-
getPath
public String getPath()
Returns the client-side project path.
-
getServerPath
public String getServerPath()
Returns the server-side project path.
-
getRevision
public String getRevision()
Returns the SHA-1 revision.
-
getAuthorName
public String getAuthorName()
Returns the author's name.
-
getAuthorEmail
public String getAuthorEmail()
Returns the author's email address.
-
getAuthorDate
public String getAuthorDate()
Returns the date this commit was authored.
-
getCommitterName
public String getCommitterName()
Returns the committer's name.
-
getCommitterEmail
public String getCommitterEmail()
Returns the committer's email address.
-
getCommitterDate
public String getCommitterDate()
Returns the date this patch was committed.
-
getCommitText
public String getCommitText()
Returns the commit message.
-
getModifiedFiles
public List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile> getModifiedFiles()
Returns a list of files modified by this change.
-
getAffectedFiles
public List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile> getAffectedFiles()
Returns a set of paths in the workspace that was affected by this change.- Overrides:
getAffectedFiles
in classChangeLogSet.Entry
-
getMsg
public String getMsg()
- Specified by:
getMsg
in classChangeLogSet.Entry
-
getAuthor
public User getAuthor()
- Specified by:
getAuthor
in classChangeLogSet.Entry
-
setParent
public void setParent(ChangeLogSet parent)
- Overrides:
setParent
in classChangeLogSet.Entry
-
getAffectedPaths
public Collection<String> getAffectedPaths()
- Specified by:
getAffectedPaths
in classChangeLogSet.Entry
-
-