pub fn is_worktree(dir: &str) -> bool
Check if the directory is inside a git worktree (not the main working tree).