(ctx context.Context, poolID ksuid.KSUID, branchName string)
| 249 | } |
| 250 | |
| 251 | func (r *Root) CommitObject(ctx context.Context, poolID ksuid.KSUID, branchName string) (ksuid.KSUID, error) { |
| 252 | pool, err := r.OpenPool(ctx, poolID) |
| 253 | if err != nil { |
| 254 | return ksuid.Nil, err |
| 255 | } |
| 256 | branchRef, err := pool.LookupBranchByName(ctx, branchName) |
| 257 | if err != nil { |
| 258 | return ksuid.Nil, err |
| 259 | } |
| 260 | return branchRef.Commit, nil |
| 261 | } |
| 262 | |
| 263 | func (r *Root) SortKeys(ctx context.Context, src dag.Op) order.SortKeys { |
| 264 | switch src := src.(type) { |
nothing calls this directly
no test coverage detected