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

Method OpenBranchByName

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

Source from the content-addressed store, hash-verified

138}
139
140func (p *Pool) OpenBranchByName(ctx context.Context, name string) (*Branch, error) {
141 branchRef, err := p.LookupBranchByName(ctx, name)
142 if err != nil {
143 return nil, err
144 }
145 return p.openBranch(ctx, branchRef)
146}
147
148// ResolveRevision returns the commit id for revision. revision can be either a
149// commit ID in string form or a branch name.

Callers 9

MainMethod · 0.95
handlePoolStatsFunction · 0.80
handleBranchLoadFunction · 0.80
handleDeleteFunction · 0.80
CompactFunction · 0.80
PullMethod · 0.80
MergeBranchMethod · 0.80
RevertMethod · 0.80
lookupBranchMethod · 0.80

Calls 2

LookupBranchByNameMethod · 0.95
openBranchMethod · 0.95

Tested by

no test coverage detected