Checkout checks out the given CL by SHA.
(ctx context.Context, sha SHA)
| 20 | |
| 21 | // Checkout checks out the given CL by SHA. |
| 22 | func (g Git) Checkout(ctx context.Context, sha SHA) error { |
| 23 | _, _, err := g.run(ctx, "checkout", sha) |
| 24 | return err |
| 25 | } |
| 26 | |
| 27 | // CheckoutBranch checks out the given branch by name. |
| 28 | func (g Git) CheckoutBranch(ctx context.Context, branch string) error { |