MCPcopy
hub / github.com/peter-evans/create-pull-request / checkout

Method checkout

src/git-command-manager.ts:51–61  ·  view source on GitHub ↗
(ref: string, startPoint?: string)

Source from the content-addressed store, hash-verified

49 }
50
51 async checkout(ref: string, startPoint?: string): Promise<void> {
52 const args = ['checkout', '--progress']
53 if (startPoint) {
54 args.push('-B', ref, startPoint)
55 } else {
56 args.push(ref)
57 }
58 // https://github.com/git/git/commit/a047fafc7866cc4087201e284dc1f53e8f9a32d5
59 args.push('--')
60 await this.exec(args)
61 }
62
63 async cherryPick(
64 options?: string[],

Callers 6

createOrUpdateBranchFunction · 0.80
createPullRequestFunction · 0.80
beforeTestFunction · 0.80
afterTestFunction · 0.80

Calls 2

execMethod · 0.95
pushMethod · 0.80

Tested by 2

beforeTestFunction · 0.64
afterTestFunction · 0.64