IsFullyQualifiedRef returns true if ref uses the "refs/heads/" or "refs/tags/" prefix.
(ref string)
| 131 | |
| 132 | // IsFullyQualifiedRef returns true if ref uses the "refs/heads/" or "refs/tags/" prefix. |
| 133 | func IsFullyQualifiedRef(ref string) bool { |
| 134 | return strings.HasPrefix(ref, "refs/heads/") || strings.HasPrefix(ref, "refs/tags/") |
| 135 | } |
| 136 | |
| 137 | // ShortRef strips the "refs/heads/" or "refs/tags/" prefix from a fully qualified ref, |
| 138 | // returning the short name. If the ref is not fully qualified it is returned as-is. |
no outgoing calls