(cwd)
| 115 | } |
| 116 | |
| 117 | export function getCurrentBranch(cwd) { |
| 118 | return gitChecked(cwd, ["branch", "--show-current"]).stdout.trim() || "HEAD"; |
| 119 | } |
| 120 | |
| 121 | export function getWorkingTreeState(cwd) { |
| 122 | const staged = gitChecked(cwd, ["diff", "--cached", "--name-only"]).stdout.trim().split("\n").filter(Boolean); |
no test coverage detected