From 72f5f08704531fe4c35d9a806fcf507fd23c8f30 Mon Sep 17 00:00:00 2001 From: Teo Gebhard Date: Sun, 5 Jan 2025 01:35:15 +0200 Subject: [PATCH 1/2] use longer argument name, reorder arguments --- src/GitFacade.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitFacade.ts b/src/GitFacade.ts index 1cb0580..6183c89 100644 --- a/src/GitFacade.ts +++ b/src/GitFacade.ts @@ -60,7 +60,7 @@ export class GitFacade { } async getLatestFixedCommit(): Promise { - return (await this.queryCommits('-g', '-1', '--grep-reflog=rebase \(fixup\)'))[0] + return (await this.queryCommits('--grep-reflog=rebase \(fixup\)', '--walk-reflogs', '-1'))[0] } private async queryCommits(...args: string[]): Promise { From 654f2818434472efefb88883af6e99b866a84f05 Mon Sep 17 00:00:00 2001 From: Teo Gebhard Date: Sun, 5 Jan 2025 01:35:35 +0200 Subject: [PATCH 2/2] remove unnecessary escaping --- src/GitFacade.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitFacade.ts b/src/GitFacade.ts index 6183c89..4295578 100644 --- a/src/GitFacade.ts +++ b/src/GitFacade.ts @@ -60,7 +60,7 @@ export class GitFacade { } async getLatestFixedCommit(): Promise { - return (await this.queryCommits('--grep-reflog=rebase \(fixup\)', '--walk-reflogs', '-1'))[0] + return (await this.queryCommits('--grep-reflog=rebase (fixup)', '--walk-reflogs', '-1'))[0] } private async queryCommits(...args: string[]): Promise {