perf: use minimal git diff algorithm (#104)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
This commit is contained in:
@@ -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',
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user