Skip to content

Commit

Permalink
perf: use minimal git diff algorithm (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroki Osame <[email protected]>
  • Loading branch information
ykankaya and privatenumber committed Apr 2, 2023
1 parent 5cbc3da commit f6d43f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
[
Expand Down

0 comments on commit f6d43f2

Please sign in to comment.