diff options
Diffstat (limited to 'refs.h')
| -rw-r--r-- | refs.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -459,6 +459,16 @@ struct refs_for_each_ref_options { const char *prefix; /* + * A globbing pattern that can be used to only yield refs that match. + * If given, refs will be matched against the pattern with + * `wildmatch()`. + * + * If the pattern doesn't contain any globbing characters then it is + * treated as if it was ending with "/" and "*". + */ + const char *pattern; + + /* * Exclude any references that match any of these patterns on a * best-effort basis. The caller needs to be prepared for the exclude * patterns to be ignored. |
