func ListCommit(apiClient pfs.ApiClient, repoName string) ([]*pfs.CommitInfo, error) { commitInfos, err := apiClient.ListCommit( context.Background(), &pfs.ListCommitRequest{ Repo: &pfs.Repo{ Name: repoName, }, }, ) if err != nil { return nil, err } return commitInfos.CommitInfo, nil }