Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.messners.gitlab.api;
 
 import java.util.List;
 
 
 public class CommitsApi extends AbstractApi {
	public CommitsApi (GitLabApi gitLabApi) {
		super(gitLabApi);
	}


GET /projects/:id/repository/commits/branch

Parameters:
branch
Returns:
Throws:
GitLabApiException
	public List<CommitgetCommits (int projectIdString branchthrows GitLabApiException {		
		ClientResponse response = get(..null"projects"projectId"repository""commits"branch);
		return (response.getEntity(new GenericType<List<Commit>>() {}));		
	}
New to GrepCode? Check out our FAQ X