public class GitChangeSet extends 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.
|
GitChangeSet(List<String> lines,
boolean authorOrCommitter,
boolean retainFullCommitSummary)
Create Git change set using information in given lines.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
User |
findOrCreateUser(String csAuthor,
String csAuthorEmail,
boolean createAccountBasedOnEmail)
Deprecated.
|
User |
findOrCreateUser(String csAuthor,
String csAuthorEmail,
boolean createAccountBasedOnEmail,
boolean useExistingAccountWithSameEmail)
Returns user of the change set.
|
Collection<GitChangeSet.Path> |
getAffectedFiles() |
Collection<String> |
getAffectedPaths() |
User |
getAuthor() |
String |
getAuthorEmail() |
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(ChangeLogSet parent) |
getMsgAnnotated, getMsgEscaped, getParentpublic static final Logger LOGGER
public GitChangeSet(List<String> lines, boolean authorOrCommitter)
lines - change set lines read to construct change setauthorOrCommitter - if true, use author information (name, time), otherwise use committer informationpublic GitChangeSet(List<String> lines, boolean authorOrCommitter, boolean retainFullCommitSummary)
lines - change set lines read to construct change setauthorOrCommitter - if true, use author information (name, time), otherwise use committer informationretainFullCommitSummary - if true, do not truncate commit summary in the 'Changes' page@Exported public String getDate()
@Exported public String getAuthorEmail()
public long getTimestamp()
getTimestamp in class ChangeLogSet.Entrypublic String getCommitId()
getCommitId in class ChangeLogSet.Entrypublic void setParent(ChangeLogSet parent)
setParent in class ChangeLogSet.Entry@CheckForNull public String getParentCommit()
public Collection<String> getAffectedPaths()
getAffectedPaths in class ChangeLogSet.Entry@Exported public Collection<GitChangeSet.Path> getPaths()
public Collection<GitChangeSet.Path> getAffectedFiles()
getAffectedFiles in class ChangeLogSet.Entry@Deprecated public User findOrCreateUser(String csAuthor, String csAuthorEmail, boolean createAccountBasedOnEmail)
findOrCreateUser(String,String,boolean,boolean)csAuthor - user name.csAuthorEmail - user email.createAccountBasedOnEmail - true if create new user based on committer's email.Userpublic User findOrCreateUser(String csAuthor, String csAuthorEmail, boolean createAccountBasedOnEmail, boolean useExistingAccountWithSameEmail)
csAuthor - user name.csAuthorEmail - user email.createAccountBasedOnEmail - true if create new user based on committer's email.useExistingAccountWithSameEmail - true if users should be searched for their email attributeUser@Exported public User getAuthor()
getAuthor in class ChangeLogSet.Entrypublic String getAuthorName()
@Exported public String getMsg()
getMsg in class ChangeLogSet.Entry@Exported public String getId()
public String getRevision()
@Exported public String getComment()
public String getCommentAnnotated()
ChangeLogAnnotator.public String getBranch()
Copyright © 2007–2020. All rights reserved.