MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / sumGitDiffLineStats

Function sumGitDiffLineStats

src/utils/git-diff-stats.ts:503–513  ·  view source on GitHub ↗
(
  stats: GitDiffLineStats[],
)

Source from the content-addressed store, hash-verified

501}
502
503export function sumGitDiffLineStats(
504 stats: GitDiffLineStats[],
505): GitDiffLineStats {
506 return stats.reduce(
507 (totals, stat) => ({
508 additions: totals.additions + stat.additions,
509 deletions: totals.deletions + stat.deletions,
510 }),
511 { additions: 0, deletions: 0 },
512 );
513}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected