pub fn resolve(worktrees: &[Worktree], query: &str) -> ResolvedExpand description
Resolves query against worktrees (spec §7): exact branch, then exact
slug, then exact directory name; then an unambiguous prefix across all three.
The first tier with any match wins; if that tier has more than one match the
query is ambiguous.