[Sprint 8] perf: Add early git check to git-flow branch-check.sh #322
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add early exit to
branch-check.shfor non-git commands to avoid unnecessary JSON parsing.Implementation: Change V5.5.0 (Sprint 8)
Problem
The hook currently:
This happens on EVERY Bash command, even
lsornpm install.Solution
Add early check right after reading stdin:
Acceptance Criteria
git checkout -b,git switch -c,git branchFiles to Modify
plugins/git-flow/hooks/branch-check.sh(add early check after line 7)Milestone: Sprint 8 - Hook Efficiency Quick Wins