(entries: StatusEntry[])
| 164 | |
| 165 | /** Render `entries` as `--short` output. */ |
| 166 | export 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 | } |
no test coverage detected