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

Function formatShort

packages/computer/src/git/status.ts:166–173  ·  view source on GitHub ↗
(entries: StatusEntry[])

Source from the content-addressed store, hash-verified

164
165/** Render `entries` as `--short` output. */
166export function formatShort(entries: StatusEntry[]): string {
167 if (entries.length === 0) return "";
168 const lines: string[] = [];
169 for (const e of entries) {
170 lines.push(`${e.index}${e.worktree} ${e.path}`);
171 }
172 return `${lines.join("\n")}\n`;
173}

Callers 2

status.test.tsFile · 0.85
runStatusFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected