MCPcopy Create free account
hub / github.com/google/gapid / Checkout

Method Checkout

core/git/checkout.go:22–25  ·  view source on GitHub ↗

Checkout checks out the given CL by SHA.

(ctx context.Context, sha SHA)

Source from the content-addressed store, hash-verified

20
21// Checkout checks out the given CL by SHA.
22func (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.
28func (g Git) CheckoutBranch(ctx context.Context, branch string) error {

Callers 1

runFunction · 0.80

Calls 1

runMethod · 0.95

Tested by

no test coverage detected