func StartCommit(apiClient pfs.ApiClient, repoName string, parentCommit string) (*pfs.Commit, error) { commit, err := apiClient.StartCommit( context.Background(), &pfs.StartCommitRequest{ Parent: &pfs.Commit{ Repo: &pfs.Repo{ Name: repoName, }, Id: parentCommit, }, }, ) if err != nil { return nil, err } return commit, nil }