MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / parseNumstatCount

Function parseNumstatCount

packages/agent-core/src/services/fs/fsGit.ts:98–102  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

96}
97
98function parseNumstatCount(value: string | undefined): number {
99 if (value === undefined || value === '-') return 0;
100 const n = Number.parseInt(value, 10);
101 return Number.isFinite(n) && n > 0 ? n : 0;
102}
103
104function parseBranchHeader(rest: string): {
105 branch: string;

Callers 1

parseNumstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected