code: public Branch getBranch(Object projectIdOrPath, String branchName) throws GitLabApiException {
          Response response = get(Response.Status.OK, null, "projects",
                  getProjectIdOrPath(projectIdOrPath), "repository", "branches", urlEncode(branchName));
          return (response.readEntity(Branch.class));
      }
docs: Get a single project repository branch.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/repository/branches/:branch</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param branchName the name of the branch to get
  @return the branch info for the specified project ID/branch name pair
  @throws GitLabApiException if any exception occurs