(ctx context.Context, name string)
| 138 | } |
| 139 | |
| 140 | func (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. |
no test coverage detected