MCPcopy Create free account
hub / github.com/brimdata/super / CreateBranch

Method CreateBranch

db/root.go:362–368  ·  view source on GitHub ↗
(ctx context.Context, poolID ksuid.KSUID, name string, parent ksuid.KSUID)

Source from the content-addressed store, hash-verified

360}
361
362func (r *Root) CreateBranch(ctx context.Context, poolID ksuid.KSUID, name string, parent ksuid.KSUID) (*branches.Config, error) {
363 config, err := r.pools.LookupByID(ctx, poolID)
364 if err != nil {
365 return nil, err
366 }
367 return CreateBranch(ctx, r.engine, r.logger, r.path, config, name, parent)
368}
369
370func (r *Root) RemoveBranch(ctx context.Context, poolID ksuid.KSUID, name string) error {
371 pool, err := r.OpenPool(ctx, poolID)

Callers

nothing calls this directly

Calls 2

CreateBranchFunction · 0.85
LookupByIDMethod · 0.80

Tested by

no test coverage detected