aboutsummaryrefslogtreecommitdiff
path: root/ref/refname/root_syntax.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-26 09:19:01 +0000
committerGravatar Runxi Yu2026-03-26 09:19:01 +0000
commit929b8cc620abca70b3444b09be5249f6c6cb7812 (patch)
tree29b1edba8f597d09a2a51a6b2c901389cc40e242 /ref/refname/root_syntax.go
parentformat: Move commitgraph and packfile here (diff)
signatureNo signature
ref/name: Rename from ref/refname
Diffstat (limited to 'ref/refname/root_syntax.go')
-rw-r--r--ref/refname/root_syntax.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/ref/refname/root_syntax.go b/ref/refname/root_syntax.go
deleted file mode 100644
index 97a15cb9..00000000
--- a/ref/refname/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
-}