`--name-status`: ` \t ` per line.
(entries: DiffSummary[])
| 395 | |
| 396 | /** `--name-status`: `<status>\t<path>` per line. */ |
| 397 | function 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 |