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, Nikita Levyankov

Nested Class Summary
static class GitChangeSet.Path
           
 
Constructor Summary
GitChangeSet(List<String> lines, boolean authorOrCommitter)
           
 
Method Summary
 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 getComment()
           
 String getCommentAnnotated()
          Gets the comment fully marked up by ChangeLogAnnotator.
 String getCurrentRevision()
          
 String getDate()
           
 String getId()
           
 String getMsg()
           
 String getParentCommit()
           
 Collection<GitChangeSet.Path> getPaths()
          Gets the files that are changed in this commit.
 String getRevision()
          Deprecated.  
 String getUser()
          
 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(List<String> lines,
                    boolean authorOrCommitter)
Method Detail

getDate

@Exported
public String getDate()

setParent

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

getParentCommit

public String getParentCommit()

getAffectedPaths

public Collection<String> getAffectedPaths()


getPaths

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

Returns:
can be empty but never null.

getAffectedFiles

public Collection<GitChangeSet.Path> getAffectedFiles()

Overrides:
getAffectedFiles in class hudson.scm.ChangeLogSet.Entry

getAuthor

@Exported
public hudson.model.User getAuthor()

getAuthorName

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

Returns:
author name.

getUser

public String getUser()


getMsg

@Exported
public String getMsg()

getId

@Exported
public String getId()

getRevision

public String getRevision()
Deprecated. 

Returns:
revision id
Since:
2.0.1
See Also:
getCurrentRevision()

getCurrentRevision

public String getCurrentRevision()

Overrides:
getCurrentRevision in class hudson.scm.ChangeLogSet.Entry

getComment

@Exported
public String getComment()

getCommentAnnotated

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



Copyright © 2004-2011 Hudson. All Rights Reserved.