When repairing a stale polecat worktree, start from origin/<default-branch> instead of the bare repo's HEAD. This ensures repaired polecats have the latest fetched commits rather than potentially stale code. - Add WorktreeAddFromRef to git package for creating worktrees from a ref - RepairWorktreeWithOptions now uses origin/<default-branch> as start point - Respects rig's configured default branch (main, master, etc.) Based on PR #112 by markov-kernel. Test changes from that PR can be submitted separately. Closes #101 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: markov-kernel <markov-kernel@users.noreply.github.com>
25 KiB
25 KiB