(c rune, why string)
| 66 | } |
| 67 | |
| 68 | func (v *globValidator) invalidRefChar(c rune, why string) { |
| 69 | cfmt := "%q" |
| 70 | if unicode.IsPrint(c) { |
| 71 | cfmt = "'%c'" |
| 72 | } |
| 73 | format := "character " + cfmt + " is invalid for branch and tag names. %s. see `man git-check-ref-format` for more details. note that regular expression is unavailable" |
| 74 | v.error(fmt.Sprintf(format, c, why)) |
| 75 | } |
| 76 | |
| 77 | func (v *globValidator) init(pat string) { |
| 78 | v.errs = []invalidGlobPattern{} |
no test coverage detected