code: public List<Commit> getCommits(Object projectIdOrPath, String ref, String path) throws GitLabApiException {
          return (getCommits(projectIdOrPath, ref, null, null, path, getDefaultPerPage()).all());
      }
docs: Get a list of file commits in a project
  
  <pre><code>GitLab Endpoint: GET /projects/:id/repository/commits?path=:file_path</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param ref the name of a repository branch or tag or if not given the default branch
  @param path the path to file of a project
  @return a list containing the commits for the specified project ID and file
  @throws GitLabApiException GitLabApiException if any exception occurs during execution