()
| 498 | const gitWatcher = new GitFileWatcher() |
| 499 | |
| 500 | async function computeBranch(): Promise<string> { |
| 501 | const gitDir = await resolveGitDir() |
| 502 | if (!gitDir) { |
| 503 | return 'HEAD' |
| 504 | } |
| 505 | const head = await readGitHead(gitDir) |
| 506 | if (!head) { |
| 507 | return 'HEAD' |
| 508 | } |
| 509 | return head.type === 'branch' ? head.name : 'HEAD' |
| 510 | } |
| 511 | |
| 512 | async function computeHead(): Promise<string> { |
| 513 | const gitDir = await resolveGitDir() |
nothing calls this directly
no test coverage detected