Add device branch-prefix rule with hook enforcement

This commit is contained in:
gitea committed 2026-10-02 16:32:39 +08:00
1 parent e4b1eea5a9
commit e72803ba3c
5 files changed
+90 -1

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
# Git pre-commit hook: enforce the device branch-prefix rule
# (.agents/rules/branch-naming.md) via .githooks/branch-guard.sh
source "$(dirname "$0")/branch-guard.sh"
guard_branch_name "$(git branch --show-current)"