org.eclipse.egit.github.core
Class RepositoryCommit

java.lang.Object
  extended by org.eclipse.egit.github.core.RepositoryCommit
All Implemented Interfaces:
Serializable

public class RepositoryCommit
extends Object
implements Serializable

Repository commit model class. This class contains GitHub-specific information about the commit and also provides access to the raw Git Commit object.

See Also:
Serialized Form

Constructor Summary
RepositoryCommit()
           
 
Method Summary
 User getAuthor()
           
 Commit getCommit()
           
 User getCommitter()
           
 List<CommitFile> getFiles()
           
 List<Commit> getParents()
           
 String getSha()
           
 CommitStats getStats()
           
 String getUrl()
           
 RepositoryCommit setAuthor(User author)
           
 RepositoryCommit setCommit(Commit commit)
           
 RepositoryCommit setCommitter(User committer)
           
 RepositoryCommit setFiles(List<CommitFile> files)
           
 RepositoryCommit setParents(List<Commit> parents)
           
 RepositoryCommit setSha(String sha)
           
 RepositoryCommit setStats(CommitStats stats)
           
 RepositoryCommit setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryCommit

public RepositoryCommit()
Method Detail

getCommit

public Commit getCommit()
Returns:
commit

setCommit

public RepositoryCommit setCommit(Commit commit)
Parameters:
commit -
Returns:
this commit

getStats

public CommitStats getStats()
Returns:
stats

setStats

public RepositoryCommit setStats(CommitStats stats)
Parameters:
stats -
Returns:
this commit

getParents

public List<Commit> getParents()
Returns:
parents

setParents

public RepositoryCommit setParents(List<Commit> parents)
Parameters:
parents -
Returns:
this commit

getFiles

public List<CommitFile> getFiles()
Returns:
files

setFiles

public RepositoryCommit setFiles(List<CommitFile> files)
Parameters:
files -
Returns:
this commit

getSha

public String getSha()
Returns:
sha

setSha

public RepositoryCommit setSha(String sha)
Parameters:
sha -
Returns:
this commit

getUrl

public String getUrl()
Returns:
url

setUrl

public RepositoryCommit setUrl(String url)
Parameters:
url -
Returns:
this commit

getAuthor

public User getAuthor()
Returns:
author

setAuthor

public RepositoryCommit setAuthor(User author)
Parameters:
author -
Returns:
this commit

getCommitter

public User getCommitter()
Returns:
committer

setCommitter

public RepositoryCommit setCommitter(User committer)
Parameters:
committer -
Returns:
this commit


Copyright © 2012. All Rights Reserved.