예제 #1
0
func mergeDatasets(ds1, ds2 dataset.Dataset, v string) (dataset.Dataset, error) {
	return ds1.CommitWithParents(types.String(v), types.NewSet(ds1.HeadRef(), ds2.HeadRef()))
}
예제 #2
0
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})
}
예제 #3
0
func addBranchedDataset(newDs, parentDs dataset.Dataset, v string) (dataset.Dataset, error) {
	return newDs.CommitWithParents(types.String(v), types.NewSet().Insert(parentDs.HeadRef()))
}
예제 #4
0
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})
}