pub async fn is_worktree(cwd: &Path) -> bool
Check if the current directory is inside a worktree (not the main checkout).