(value)
| 29 | } |
| 30 | |
| 31 | function normalizeMaxInlineDiffBytes(value) { |
| 32 | const parsed = Number(value); |
| 33 | if (!Number.isFinite(parsed) || parsed < 0) { |
| 34 | return DEFAULT_INLINE_DIFF_MAX_BYTES; |
| 35 | } |
| 36 | return Math.floor(parsed); |
| 37 | } |
| 38 | |
| 39 | function measureGitOutputBytes(cwd, args, maxBytes) { |
| 40 | const result = git(cwd, args, { maxBuffer: maxBytes + 1 }); |
no outgoing calls
no test coverage detected