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

Method removeBranch

db/pool.go:104–110  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

102}
103
104func (p *Pool) removeBranch(ctx context.Context, name string) error {
105 config, err := p.branches.LookupByName(ctx, name)
106 if err != nil {
107 return err
108 }
109 return p.branches.Remove(ctx, *config)
110}
111
112func (p *Pool) Snapshot(ctx context.Context, commit ksuid.KSUID) (commits.View, error) {
113 return p.commits.Snapshot(ctx, commit)

Callers 1

RemoveBranchMethod · 0.80

Calls 2

LookupByNameMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected