diff options
Diffstat (limited to 'refspec.h')
| -rw-r--r-- | refspec.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -96,4 +96,16 @@ void refspec_find_all_matches(struct refspec *rs, struct refspec_item *query, struct string_list *results); +/* + * Remove all entries in the input list which match any negative refspec in + * the refspec list. + */ +struct ref *apply_negative_refspecs(struct ref *ref_map, struct refspec *rs); + +/* + * Search for a refspec that matches the given name and return the + * corresponding destination (dst) if a match is found, NULL otherwise. + */ +char *apply_refspecs(struct refspec *rs, const char *name); + #endif /* REFSPEC_H */ |
