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