public class CommitsApi extends AbstractApi
Constructor and Description |
---|
CommitsApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
List<Commit> |
getCommits(int projectId)
Get a list of repository commits in a project.
|
Commit |
getCommits(int projectId,
String sha)
Get a specific commit identified by the commit hash or name of a branch or tag.
|
Diff |
getDiff(int projectId,
String sha)
Get the diff of a commit in a project.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, handle, post, post, put, put, validate
public CommitsApi(GitLabApi gitLabApi)
public List<Commit> getCommits(int projectId) throws GitLabApiException
projectId
- GitLabApiException
public Commit getCommits(int projectId, String sha) throws GitLabApiException
projectId
- sha
- a commit hash or name of a branch or tagGitLabApiException
public Diff getDiff(int projectId, String sha) throws GitLabApiException
projectId
- sha
- a commit hash or name of a branch or tagGitLabApiException
Copyright © 2015. All rights reserved.