perf: use minimal git diff algorithm (#104)

Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
This commit is contained in:
8osz01
2023-04-02 06:58:05 +03:00
committed by GitHub
parent 5cbc3da9ae
commit f6d43f242c

View File

@@ -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',
[