From f6d43f242ce234f1187e04b2e7daa777eb96ca86 Mon Sep 17 00:00:00 2001 From: 8osz01 Date: Sun, 2 Apr 2023 06:58:05 +0300 Subject: [PATCH] perf: use minimal git diff algorithm (#104) Co-authored-by: Hiroki Osame --- src/utils/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/git.ts b/src/utils/git.ts index fc1630e..b908546 100644 --- a/src/utils/git.ts +++ b/src/utils/git.ts @@ -20,7 +20,7 @@ const filesToExclude = [ ].map(excludeFromDiff); export const getStagedDiff = async (excludeFiles?: string[]) => { - const diffCached = ['diff', '--cached']; + const diffCached = ['diff', '--cached', '--diff-algorithm=minimal']; const { stdout: files } = await execa( 'git', [