public class GitChangeSet
extends hudson.scm.ChangeLogSet.Entry
| Modifier and Type | Class and Description |
|---|---|
static class |
GitChangeSet.Path |
| Constructor and Description |
|---|
GitChangeSet(List<String> lines,
boolean authorOrCommitter)
Create Git change set using information in given lines
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
hudson.model.User |
findOrCreateUser(String csAuthor,
String csAuthorEmail,
boolean createAccountBasedOnEmail)
Returns user of the change set.
|
Collection<GitChangeSet.Path> |
getAffectedFiles() |
Collection<String> |
getAffectedPaths() |
hudson.model.User |
getAuthor() |
String |
getAuthorName()
Gets the author name for this changeset - note that this is mainly here
so that we can test authorOrCommitter without needing a fully instantiated
Hudson (which is needed for User.get in getAuthor()).
|
String |
getBranch() |
String |
getComment() |
String |
getCommentAnnotated()
Gets the comment fully marked up by
ChangeLogAnnotator. |
String |
getCommitId() |
String |
getDate() |
String |
getId() |
String |
getMsg() |
String |
getParentCommit() |
Collection<GitChangeSet.Path> |
getPaths()
Gets the files that are changed in this commit.
|
String |
getRevision() |
long |
getTimestamp() |
int |
hashCode() |
void |
setParent(hudson.scm.ChangeLogSet parent) |
@Exported public String getDate()
public long getTimestamp()
getTimestamp in class hudson.scm.ChangeLogSet.Entrypublic String getCommitId()
getCommitId in class hudson.scm.ChangeLogSet.Entrypublic void setParent(hudson.scm.ChangeLogSet parent)
setParent in class hudson.scm.ChangeLogSet.Entry@CheckForNull public String getParentCommit()
public Collection<String> getAffectedPaths()
getAffectedPaths in class hudson.scm.ChangeLogSet.Entry@Exported public Collection<GitChangeSet.Path> getPaths()
public Collection<GitChangeSet.Path> getAffectedFiles()
getAffectedFiles in class hudson.scm.ChangeLogSet.Entrypublic hudson.model.User findOrCreateUser(String csAuthor, String csAuthorEmail, boolean createAccountBasedOnEmail)
csAuthor - user name.csAuthorEmail - user email.createAccountBasedOnEmail - true if create new user based on committer's email.User@Exported public hudson.model.User getAuthor()
getAuthor in class hudson.scm.ChangeLogSet.Entrypublic String getAuthorName()
@Exported public String getMsg()
getMsg in class hudson.scm.ChangeLogSet.Entry@Exported public String getId()
public String getRevision()
@Exported public String getComment()
public String getCommentAnnotated()
ChangeLogAnnotator.public String getBranch()
Copyright © 2004-2015. All Rights Reserved.