()
| 29 | export type Info = z.infer<typeof Info> |
| 30 | |
| 31 | async function currentBranch() { |
| 32 | return $`git rev-parse --abbrev-ref HEAD` |
| 33 | .quiet() |
| 34 | .nothrow() |
| 35 | .cwd(Instance.worktree) |
| 36 | .text() |
| 37 | .then((x) => x.trim()) |
| 38 | .catch(() => undefined) |
| 39 | } |
| 40 | |
| 41 | const state = Instance.state( |
| 42 | async () => { |