diff --git a/src/utils/diff/diff.ts b/src/utils/diff/diff.ts index 9c51f3bd6..285a9e599 100644 --- a/src/utils/diff/diff.ts +++ b/src/utils/diff/diff.ts @@ -4,7 +4,7 @@ import { readFileSync } from 'fs' export const executeDiff = (diffCommand: string): parse.File[] => { try { - execSync(`git diff ${diffCommand} > diff.txt`, { stdio: 'ignore' }) + execSync(`git diff --unified=0 ${diffCommand} > diff.txt`, { stdio: 'ignore' }) return parse(readFileSync('diff.txt', 'utf8')) } finally { execSync('rm diff.txt', { stdio: 'ignore' })