|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egit.github.core.service.GitHubService
org.eclipse.egit.github.core.service.CommitService
public class CommitService
Service for interacting with repository commits
Field Summary |
---|
Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
---|
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_TEXT, client |
Constructor Summary | |
---|---|
CommitService()
Create commit service |
|
CommitService(GitHubClient client)
Create commit service |
Method Summary | |
---|---|
CommitComment |
addComment(IRepositoryIdProvider repository,
String sha,
CommitComment comment)
Add comment to given commit |
RepositoryCommitCompare |
compare(IRepositoryIdProvider repository,
String base,
String head)
Compare base and head commits |
void |
deleteComment(IRepositoryIdProvider repository,
long commentId)
Delete commit comment with given id from given repository |
CommitComment |
editComment(IRepositoryIdProvider repository,
CommitComment comment)
Edit given comment |
CommitComment |
getComment(IRepositoryIdProvider repository,
long commentId)
Get commit comment with given id |
List<CommitComment> |
getComments(IRepositoryIdProvider repository,
String sha)
Get all comments on commit with given SHA-1 |
RepositoryCommit |
getCommit(IRepositoryIdProvider repository,
String sha)
Get commit with given SHA-1 from given repository |
List<RepositoryCommit> |
getCommits(IRepositoryIdProvider repository)
Get all commits in given repository |
List<RepositoryCommit> |
getCommits(IRepositoryIdProvider repository,
String sha,
String path)
Get all commits in given repository beginning at an optional commit SHA-1 and affecting an optional path. |
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
String sha)
Page comments on commit with given SHA-1 |
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
String sha,
int size)
Page comments on commit with given SHA-1 |
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
String sha,
int start,
int size)
Page comments on commit with given SHA-1 |
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository)
Page commits in given repository |
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository,
int size)
Page commits in given repository |
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository,
String sha,
String path)
Page commits in given repository |
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository,
String sha,
String path,
int size)
Page commits in given repository |
Methods inherited from class org.eclipse.egit.github.core.service.GitHubService |
---|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommitService()
public CommitService(GitHubClient client)
client
- Method Detail |
---|
public List<RepositoryCommit> getCommits(IRepositoryIdProvider repository) throws IOException
repository
-
IOException
public List<RepositoryCommit> getCommits(IRepositoryIdProvider repository, String sha, String path) throws IOException
repository
- sha
- path
-
IOException
public PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository)
repository
-
public PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository, int size)
repository
- size
-
public PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository, String sha, String path)
repository
- sha
- path
-
public PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository, String sha, String path, int size)
repository
- sha
- path
- size
-
public RepositoryCommit getCommit(IRepositoryIdProvider repository, String sha) throws IOException
repository
- sha
-
IOException
public List<CommitComment> getComments(IRepositoryIdProvider repository, String sha) throws IOException
repository
- sha
-
IOException
public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, String sha)
repository
- sha
-
public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, String sha, int size)
repository
- sha
- size
-
public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, String sha, int start, int size)
repository
- sha
- start
- size
-
public CommitComment getComment(IRepositoryIdProvider repository, long commentId) throws IOException
repository
- commentId
-
IOException
public CommitComment addComment(IRepositoryIdProvider repository, String sha, CommitComment comment) throws IOException
repository
- sha
- comment
-
IOException
public CommitComment editComment(IRepositoryIdProvider repository, CommitComment comment) throws IOException
repository
- comment
-
IOException
public void deleteComment(IRepositoryIdProvider repository, long commentId) throws IOException
repository
- commentId
-
IOException
public RepositoryCommitCompare compare(IRepositoryIdProvider repository, String base, String head) throws IOException
repository
- base
- head
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |