aboutsummaryrefslogtreecommitdiff
path: root/ref/name/root_syntax.go
diff options
context:
space:
mode:
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
-}