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

Function parseDiffNumstatCount

apps/kimi-code/src/utils/git/git-status.ts:239–243  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

237}
238
239function parseDiffNumstatCount(value: string | undefined): number {
240 if (value === undefined || value === '-') return 0;
241 const n = Number.parseInt(value, 10);
242 return Number.isFinite(n) && n > 0 ? n : 0;
243}
244
245function readPullRequest(workDir: string): Promise<PullRequestInfo | null> {
246 return new Promise((resolve) => {

Callers 1

readDiffStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected