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

Method revList

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

Source from the content-addressed store, hash-verified

266 }
267
268 async revList(
269 commitExpression: string[],
270 options?: string[]
271 ): Promise<string> {
272 const args = ['rev-list']
273 if (options) {
274 args.push(...options)
275 }
276 args.push(...commitExpression)
277 const output = await this.exec(args)
278 return output.stdout.trim()
279 }
280
281 async revParse(ref: string, options?: string[]): Promise<string> {
282 const args = ['rev-parse']

Callers 3

commitsAheadFunction · 0.80
commitsBehindFunction · 0.80
createOrUpdateBranchFunction · 0.80

Calls 2

execMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected