Skip to content

Commit

Permalink
fix: git context to not exceed spawn sync buffer for very large inFil…
Browse files Browse the repository at this point in the history
…e metadata (#161)
  • Loading branch information
scolladon authored Jul 6, 2021
1 parent b8f482c commit 21a31f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/fileGitDiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const childProcess = require('child_process')
const cpUtils = require('./childProcessUtils')
const gc = require('./gitConstants')

const unitDiffParams = ['--no-pager', 'diff', '--no-prefix', '-U10000000000']
const unitDiffParams = ['--no-pager', 'diff', '--no-prefix', '-U200']

module.exports = (filePath, config) => {
const { stdout: diff } = childProcess.spawnSync(
Expand Down

0 comments on commit 21a31f8

Please sign in to comment.