refactor: Rename RecreateWithOptions to RepairWorktreeWithOptions
Clarify that this operation is for stale state recovery, not normal recycling: - Recreate → RepairWorktree - RecreateWithOptions → RepairWorktreeWithOptions - Updated comments to explain this handles reconciliation when AllocateName returns a name that already exists (stale state needing repair) - Updated polecat_spawn.go output: Recreating → Repairing stale - Updated gc command help text for consistency The function is useful for atomic hook_bead setting during repair, so kept rather than replacing with Remove + Add. Fixes gt-l0lok 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -147,8 +147,8 @@ var polecatGCCmd = &cobra.Command{
|
||||
Long: `Garbage collect stale polecat branches in a rig.
|
||||
|
||||
Polecats use unique timestamped branches (polecat/<name>-<timestamp>) to
|
||||
prevent drift issues. Over time, these branches accumulate as polecats
|
||||
are recreated.
|
||||
prevent drift issues. Over time, these branches accumulate when stale
|
||||
polecats are repaired.
|
||||
|
||||
This command removes orphaned branches:
|
||||
- Branches for polecats that no longer exist
|
||||
|
||||
Reference in New Issue
Block a user