MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / ripGrepFileCount

Function ripGrepFileCount

source code/utils/ripgrep.ts:248–283  ·  view source on GitHub ↗

* Stream-count lines from `rg --files` without buffering stdout. * * On large repos (e.g. 247k files, 16MB of paths), calling `ripGrep()` just * to read `.length` materializes the full stdout string plus a 247k-element * array. This counts newline bytes per chunk instead; peak memory is one * s

(
  args: string[],
  target: string,
  abortSignal: AbortSignal,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ripgrep.tsFile · 0.85

Calls 5

ripgrepCommandFunction · 0.85
spawnFunction · 0.85
countCharInStringFunction · 0.85
resolveFunction · 0.70

Tested by

no test coverage detected