MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / normalizeMaxInlineDiffBytes

Function normalizeMaxInlineDiffBytes

plugins/codex/scripts/lib/git.mjs:31–37  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

29}
30
31function 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
39function measureGitOutputBytes(cwd, args, maxBytes) {
40 const result = git(cwd, args, { maxBuffer: maxBytes + 1 });

Callers 1

collectReviewContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected