(commits: CommitView[])
| 805 | } |
| 806 | |
| 807 | function formatLogOneline(commits: CommitView[]): string { |
| 808 | if (commits.length === 0) return ""; |
| 809 | return `${commits.map((c) => `${c.oid.slice(0, 7)} ${firstLine(c.message)}`).join("\n")}\n`; |
| 810 | } |
| 811 | |
| 812 | function formatLogFull(commits: CommitView[]): string { |
| 813 | if (commits.length === 0) return ""; |