(worktreePath: string)
| 206 | * Returns true if there are staged, unstaged, or untracked changes. |
| 207 | */ |
| 208 | export async function hasUncommittedChanges(worktreePath: string): Promise<boolean> { |
| 209 | const git = createGit(worktreePath); |
| 210 | const status = await git.status(); |
| 211 | |
| 212 | return !status.isClean(); |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Gets detailed uncommitted changes information. |
no test coverage detected