-
Methods in org.gitlab4j.api that return Commit
Modifier and Type |
Method |
Description |
Commit |
CommitsApi.cherryPickCommit(Object projectIdOrPath,
String sha,
String branch) |
Cherry picks a commit in a given branch.
|
Commit |
CommitsApi.createCommit(Object projectIdOrPath,
String branch,
String commitMessage,
String startBranch,
String authorEmail,
String authorName,
List<CommitAction> actions) |
Create a commit with multiple files and actions.
|
Commit |
CommitsApi.createCommit(Object projectIdOrPath,
String branch,
String commitMessage,
String startBranch,
String authorEmail,
String authorName,
CommitAction action) |
Create a commit with single file and action.
|
Commit |
CommitsApi.createCommit(Object projectIdOrPath,
CommitPayload payload) |
Create a commit with multiple files and actions.
|
Commit |
CommitsApi.getCommit(Object projectIdOrPath,
String sha) |
Get a specific commit identified by the commit hash or name of a branch or tag.
|
Commit |
RepositoryApi.getMergeBase(Object projectIdOrPath,
List<String> refs) |
Get the common ancestor for 2 or more refs (commit SHAs, branch names or tags).
|
Commit |
CommitsApi.revertCommit(Object projectIdOrPath,
String sha,
String branch) |
Reverts a commit in a given branch.
|
Methods in org.gitlab4j.api that return types with arguments of type Commit
Modifier and Type |
Method |
Description |
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath) |
Get a list of all repository commits in a project.
|
Pager<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
int itemsPerPage) |
Get a Pager of all repository commits in a project.
|
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
int page,
int perPage) |
Deprecated.
|
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
String path) |
Get a list of file commits in a project
|
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until) |
Get a list of repository commits in a project.
|
Pager<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until,
int itemsPerPage) |
Get a Pager of repository commits in a project.
|
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until,
int page,
int perPage) |
Deprecated.
|
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until,
String path) |
Get a list of repository commits in a project.
|
Pager<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until,
String path,
int itemsPerPage) |
Get a Pager of repository commits in a project
|
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until,
String path,
int page,
int perPage) |
Deprecated.
|
List<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until,
String path,
Boolean all,
Boolean withStats,
Boolean firstParent) |
Get a List of the specified repository commits in a project
|
Pager<Commit> |
CommitsApi.getCommits(Object projectIdOrPath,
String ref,
Date since,
Date until,
String path,
Boolean all,
Boolean withStats,
Boolean firstParent,
int itemsPerPage) |
Get a Pager of the specified repository commits in a project
|
List<Commit> |
MergeRequestApi.getCommits(Object projectIdOrPath,
int mergeRequestIid) |
Get a list of merge request commits.
|
Pager<Commit> |
MergeRequestApi.getCommits(Object projectIdOrPath,
int mergeRequestIid,
int itemsPerPage) |
Get a Pager of merge request commits.
|
List<Commit> |
MergeRequestApi.getCommits(Object projectIdOrPath,
int mergeRequestIid,
int page,
int perPage) |
Get a list of merge request commits.
|
Stream<Commit> |
CommitsApi.getCommitsStream(Object projectIdOrPath,
String ref,
Date since,
Date until) |
Get a Stream of repository commits in a project.
|
Stream<Commit> |
CommitsApi.getCommitsStream(Object projectIdOrPath,
String ref,
Date since,
Date until,
String path) |
Get a Stream of repository commits in a project.
|
Stream<Commit> |
CommitsApi.getCommitsStream(Object projectIdOrPath,
String ref,
Date since,
Date until,
String path,
Boolean all,
Boolean withStats,
Boolean firstParent) |
Get a Stream of the specified repository commits in a project
|
Stream<Commit> |
MergeRequestApi.getCommitsStream(Object projectIdOrPath,
int mergeRequestIid) |
Get a Stream of merge request commits.
|
Stream<Commit> |
CommitsApi.getCommitStream(Object projectIdOrPath) |
Get a Stream of all repository commits in a project.
|
Optional<Commit> |
CommitsApi.getOptionalCommit(Object projectIdOrPath,
String sha) |
Get a specific commit identified by the commit hash or name of a branch or tag as an Optional instance
|
Optional<Commit> |
RepositoryApi.getOptionalMergeBase(Object projectIdOrPath,
List<String> refs) |
Get an Optional instance with the value of the common ancestor
for 2 or more refs (commit SHAs, branch names or tags).
|
-