pub fn is_worktree(repo_path: &Path) -> Result<bool>
Check if a directory is a git worktree (not a submodule)
Worktrees have gitdir paths containing “/worktrees/”. Submodules have gitdir paths containing “/modules/”.