(opts?: { cwd?: string })
| 105 | |
| 106 | /** Check if there are uncommitted changes */ |
| 107 | export function hasUncommittedChanges(opts?: { cwd?: string }): boolean { |
| 108 | const result = tryRunArgs(['git', 'status', '--porcelain'], opts); |
| 109 | return result !== null && result.length > 0; |
| 110 | } |
| 111 | |
| 112 | /** Get the current branch name */ |
| 113 | export function getCurrentBranch(opts?: { cwd?: string }): string | null { |
no test coverage detected
searching dependent graphs…