hudson.plugins.git
Class GitChangeSet

java.lang.Object
  extended by hudson.scm.ChangeLogSet.Entry
      extended by hudson.plugins.git.GitChangeSet

public class GitChangeSet
extends hudson.scm.ChangeLogSet.Entry

Represents a change set.

Author:
Nigel Magnay

Nested Class Summary
static class GitChangeSet.Path
           
 
Constructor Summary
GitChangeSet(java.util.List<java.lang.String> lines, boolean authorOrCommitter)
           
 
Method Summary
 java.util.Collection<GitChangeSet.Path> getAffectedFiles()
           
 java.util.Collection<java.lang.String> getAffectedPaths()
           
 hudson.model.User getAuthor()
           
 java.lang.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()).
 java.lang.String getComment()
           
 java.lang.String getCommentAnnotated()
          Gets the comment fully marked up by ChangeLogAnnotator.
 java.lang.String getDate()
           
 java.lang.String getId()
           
 java.lang.String getMsg()
           
 java.lang.String getParentCommit()
           
 java.util.Collection<GitChangeSet.Path> getPaths()
          Gets the files that are changed in this commit.
 java.lang.String getRevision()
           
 void setParent(hudson.scm.ChangeLogSet parent)
           
 
Methods inherited from class hudson.scm.ChangeLogSet.Entry
getMsgAnnotated, getMsgEscaped, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitChangeSet

public GitChangeSet(java.util.List<java.lang.String> lines,
                    boolean authorOrCommitter)
Method Detail

getDate

@Exported
public java.lang.String getDate()

setParent

public void setParent(hudson.scm.ChangeLogSet parent)
Overrides:
setParent in class hudson.scm.ChangeLogSet.Entry

getParentCommit

public java.lang.String getParentCommit()

getAffectedPaths

public java.util.Collection<java.lang.String> getAffectedPaths()
Specified by:
getAffectedPaths in class hudson.scm.ChangeLogSet.Entry

getPaths

@Exported
public java.util.Collection<GitChangeSet.Path> getPaths()
Gets the files that are changed in this commit.

Returns:
can be empty but never null.

getAffectedFiles

public java.util.Collection<GitChangeSet.Path> getAffectedFiles()
Overrides:
getAffectedFiles in class hudson.scm.ChangeLogSet.Entry

getAuthor

@Exported
public hudson.model.User getAuthor()
Specified by:
getAuthor in class hudson.scm.ChangeLogSet.Entry

getAuthorName

public java.lang.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()).


getMsg

@Exported
public java.lang.String getMsg()
Specified by:
getMsg in class hudson.scm.ChangeLogSet.Entry

getId

@Exported
public java.lang.String getId()

getRevision

public java.lang.String getRevision()

getComment

@Exported
public java.lang.String getComment()

getCommentAnnotated

public java.lang.String getCommentAnnotated()
Gets the comment fully marked up by ChangeLogAnnotator.



Copyright © 2010. All Rights Reserved.