diff options
| author | 2026-03-26 09:19:01 +0000 | |
|---|---|---|
| committer | 2026-03-26 09:19:01 +0000 | |
| commit | 929b8cc620abca70b3444b09be5249f6c6cb7812 (patch) | |
| tree | 29b1edba8f597d09a2a51a6b2c901389cc40e242 /ref/refname/sanitize.go | |
| parent | format: Move commitgraph and packfile here (diff) | |
| signature | No signature | |
ref/name: Rename from ref/refname
Diffstat (limited to 'ref/refname/sanitize.go')
| -rw-r--r-- | ref/refname/sanitize.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ref/refname/sanitize.go b/ref/refname/sanitize.go deleted file mode 100644 index f543de7c..00000000 --- a/ref/refname/sanitize.go +++ /dev/null @@ -1,19 +0,0 @@ -package refname - -import ( - "fmt" - "strings" -) - -// SanitizeComponent mutates component until it satisfies -// sanitize_refname_component. -func SanitizeComponent(component string) string { - var builder strings.Builder - - err := checkOrSanitizeRefname(component, refnameAllowOneLevel, &builder) - if err != nil { - panic(fmt.Sprintf("ref: sanitize component %q: %v", component, err)) - } - - return builder.String() -} |
