Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.messners.gitlab.api;
 
 
 
 public class RepositoryApi extends AbstractApi {
 
	public RepositoryApi (GitLabApi gitLabApi) {
		super(gitLabApi);
	}

GET /projects/:id/repository/branches/:branch

Parameters:
gitLabApi TODO
projectId
branchName
Returns:
Throws:
java.io.IOException
	public Branch getBranch (GitLabApi gitLabApiInteger projectIdString branchNamethrows IOException {
		ClientResponse response = get(null"projects"projectId"repository""branches"branchName);
		return (response.getEntity(Branch.class));
	}
New to GrepCode? Check out our FAQ X