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

Function formatDiffNameOnly

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

`--name-only`: one changed path per line.

(entries: DiffSummary[])

Source from the content-addressed store, hash-verified

389
390/** `--name-only`: one changed path per line. */
391function formatDiffNameOnly(entries: DiffSummary[]): string {
392 if (entries.length === 0) return "";
393 return `${entries.map((e) => e.path).join("\n")}\n`;
394}
395
396/** `--name-status`: `<status>\t<path>` per line. */
397function formatDiffNameStatus(entries: DiffSummary[]): string {

Callers 1

runDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected