src/server/pkg/pfsdb/pfsdb.go
func Branches(etcdClient *etcd.Client, etcdPrefix string, repo string) col.Collection {
	return col.NewCollection(
		etcdClient,
		path.Join(etcdPrefix, branchesPrefix, repo),
		nil,
		&pfs.BranchInfo{},
		func(key string) error {
			if uuid.IsUUIDWithoutDashes(key) {
				return fmt.Errorf("branch name cannot be a UUID V4")
			}
			return nil
		},
		nil,
	)
}
func Branches(etcdClient *etcd.Client, etcdPrefix string, repo string) col.Collection {
	return col.NewCollection(
		etcdClient,
		path.Join(etcdPrefix, branchesPrefix, repo),
		nil,
		&pfs.BranchInfo{},
		func(key string) error {
			if uuid.IsUUIDWithoutDashes(key) {
				return fmt.Errorf("branch name cannot be a UUID V4")
			}
			return nil
		},
		nil,
	)
}
// Branches returns a collection of branches