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

Function sumGitDiffLineStats

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

Source from the content-addressed store, hash-verified

109}
110
111export function sumGitDiffLineStats(
112 stats: GitDiffLineStats[],
113): GitDiffLineStats {
114 return stats.reduce(
115 (totals, stat) => ({
116 additions: totals.additions + stat.additions,
117 deletions: totals.deletions + stat.deletions,
118 }),
119 { additions: 0, deletions: 0 },
120 );
121}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected