(ref: string, options?: string[])
| 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}`] |
no test coverage detected