(line: string, ctx: TreeContext)
| 204 | } |
| 205 | |
| 206 | function pushLine(line: string, ctx: TreeContext): void { |
| 207 | ctx.lines.push(line); |
| 208 | ctx.byteCount += line.length + 1; // +1 for newline |
| 209 | ctx.entryCount += 1; |
| 210 | } |
| 211 | |
| 212 | export async function getGitBranch(cwd: string): Promise<string | undefined> { |
| 213 | try { |