pub fn remotes_tracked_by_worktrees(
repo: &Repository,
worktrees: &[WorktreeDescriptor],
) -> Result<Vec<String>>Expand description
Returns the deduplicated list of remote names tracked by the given worktrees.
For each worktree with a local branch that has an upstream configured, reads
branch.<name>.remote from git config. Results are deduplicated and returned in
stable (first-seen) order. Worktrees with detached HEAD or no upstream are
silently skipped.