Problem
The current devenv git-hooks integration has accumulated substantial Git config orchestration logic to work around worktree-specific hook installation behavior. This is hard to maintain in devenv and duplicates installer concerns that should live upstream in prek.
Context
Decision
Implement the worktree-safe and transactional installation semantics in prek first, then simplify devenv to a thin integration wrapper.
Follow-up plan in devenv
- Start a fresh devenv branch/PR after prek fix lands (or is available in nixpkgs input).
- Remove most bash-level Git config mutation logic from src/modules/integrations/git-hooks.nix.
- Keep only stage mapping / invocation glue needed for devenv task wiring.
- Add regression coverage in devenv integration tests for the previously reported worktree scenario.
- Verify no behavior regressions for non-worktree repositories.
Acceptance criteria
Created on behalf of @schickling.
Problem
The current devenv git-hooks integration has accumulated substantial Git config orchestration logic to work around worktree-specific hook installation behavior. This is hard to maintain in devenv and duplicates installer concerns that should live upstream in prek.
Context
Decision
Implement the worktree-safe and transactional installation semantics in prek first, then simplify devenv to a thin integration wrapper.
Follow-up plan in devenv
Acceptance criteria
Created on behalf of @schickling.