MCPcopy Create free account
hub / github.com/cloudflare/computer / formatDiffNameStatus

Function formatDiffNameStatus

packages/computer/src/git/cli.ts:397–400  ·  view source on GitHub ↗

`--name-status`: ` \t ` per line.

(entries: DiffSummary[])

Source from the content-addressed store, hash-verified

395
396/** `--name-status`: `<status>\t<path>` per line. */
397function formatDiffNameStatus(entries: DiffSummary[]): string {
398 if (entries.length === 0) return "";
399 return `${entries.map((e) => `${e.status}\t${e.path}`).join("\n")}\n`;
400}
401
402/**
403 * `--stat`: a per-file line with a `+`/`-` bar plus a summary

Callers 1

runDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected