func mergeDatasets(ds1, ds2 dataset.Dataset, v string) (dataset.Dataset, error) { return ds1.CommitWithParents(types.String(v), types.NewSet(ds1.HeadRef(), ds2.HeadRef())) }
func mergeDatasets(ds1, ds2 dataset.Dataset, v string) (dataset.Dataset, error) { p := types.NewSet(ds1.HeadRef(), ds2.HeadRef()) return ds1.Commit(types.String(v), dataset.CommitOptions{Parents: p}) }
func addBranchedDataset(newDs, parentDs dataset.Dataset, v string) (dataset.Dataset, error) { return newDs.CommitWithParents(types.String(v), types.NewSet().Insert(parentDs.HeadRef())) }
func addBranchedDataset(newDs, parentDs dataset.Dataset, v string) (dataset.Dataset, error) { p := types.NewSet(parentDs.HeadRef()) return newDs.Commit(types.String(v), dataset.CommitOptions{Parents: p}) }