excludeRefPrefixFlag registers --exclude-ref-prefix. Repeatable; each prefix is matched as a string prefix against ref names (e.g. "refs/pull/" trims GitHub PR refs under --all-refs).
(cmd *cobra.Command, prefixes *[]string)
| 56 | // prefix is matched as a string prefix against ref names (e.g. |
| 57 | // "refs/pull/" trims GitHub PR refs under --all-refs). |
| 58 | func excludeRefPrefixFlag(cmd *cobra.Command, prefixes *[]string) { |
| 59 | cmd.Flags().StringArrayVar(prefixes, "exclude-ref-prefix", nil, |
| 60 | "exclude refs whose names start with this prefix; repeatable. "+ |
| 61 | "Subtracts from auto-discovery (branches/tags/--all-refs); explicit --map values are not subject to this filter") |
| 62 | } |
| 63 | |
| 64 | // allRefsFlag registers --all-refs with the supplied usage string and |
| 65 | // bundles its implications. Each pointer in implies is set to true when |
no outgoing calls
no test coverage detected