aboutsummaryrefslogtreecommitdiff
path: root/ref/name/root_syntax.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-04-02 06:23:30 +0000
committerGravatar Runxi Yu2026-04-02 06:28:39 +0000
commita041d523de389b65b98a5373a8034041db2a8d83 (patch)
tree7b423dc735f463be616045f2c3c2095a7737aca7 /ref/name/root_syntax.go
parentresearch: Add dynamic pack resources (diff)
signatureNo signature
*: Remove
Diffstat (limited to 'ref/name/root_syntax.go')
-rw-r--r--ref/name/root_syntax.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/ref/name/root_syntax.go b/ref/name/root_syntax.go
deleted file mode 100644
index 97a15cb9..00000000
--- a/ref/name/root_syntax.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package refname
-
-// IsRootSyntax reports whether name matches Git's all-caps root-ref syntax.
-func IsRootSyntax(name string) bool {
- for i := range len(name) {
- ch := name[i]
- if (ch < 'A' || ch > 'Z') && ch != '-' && ch != '_' {
- return false
- }
- }
-
- return true
-}