diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 9be35e41..303c4b53 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -278,6 +278,12 @@ export class GitCommandManager { return output.stdout.trim() } + async showFileAtRef(ref: string, path: string): Promise { + const args = ['show', `${ref}:${path}`] + const output = await this.exec(args) + return output.stdout.trim() + } + async stashPush(options?: string[]): Promise { const args = ['stash', 'push'] if (options) {