hooks: uninstall Entire's hook from pre-commit's .legacy copy

Commit

peyton-altyesterday

In pre-commit's migration mode, Entire's hook lives at <hook>.legacy, which pre-commit's wrapper runs. Uninstall only looked at <hook>, saw the wrapper as foreign, and left Entire's hook in .legacy and the user's original in .pre-entire. Now it removes Entire's hook there and restores the backup into .legacy, so pre-commit runs what it would have without Entire.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M46ZY357E9P79HVW4YFS198W

Checkpoints

Triaging Git Hooks Tickets and Adversarial Review

Claude CodeOpus 5.5
View session
Checkpoint 1