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

Method revParse

src/git-command-manager.ts:281–289  ·  view source on GitHub ↗
(ref: string, options?: string[])

Source from the content-addressed store, hash-verified

279 }
280
281 async revParse(ref: string, options?: string[]): Promise<string> {
282 const args = ['rev-parse']
283 if (options) {
284 args.push(...options)
285 }
286 args.push(ref)
287 const output = await this.exec(args)
288 return output.stdout.trim()
289 }
290
291 async showFileAtRefBase64(ref: string, path: string): Promise<string> {
292 const args = ['show', `${ref}:${path}`]

Callers 5

getGitDirectoryMethod · 0.95
getWorkingBaseAndTypeFunction · 0.80
createOrUpdateBranchFunction · 0.80
createPullRequestFunction · 0.80

Calls 2

execMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected