diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:54 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:54 -0800 |
| commit | 998c5f0c7554f511bafff587292f986a42fa2944 (patch) | |
| tree | 09b67e85355f25fc4ccef877c53afd19ffb8ca77 /remote.h | |
| parent | 791677a5ddce9730a1203188938406ae030ed170 (diff) | |
| parent | d549b6c9ff44d3ccb32b9bfe1816d3cfb1d7052a (diff) | |
| download | git-998c5f0c7554f511bafff587292f986a42fa2944.tar.xz | |
Merge branch 'ms/refspec-cleanup'
Code clean-up. cf. <Z6G-toOJjMmK8iJG@pks.im>
* ms/refspec-cleanup:
refspec: relocate apply_refspecs and related funtions
refspec: relocate matching related functions
remote: rename query_refspecs functions
refspec: relocate refname_matches_negative_refspec_item
remote: rename function omit_name_by_refspec
Diffstat (limited to 'remote.h')
| -rw-r--r-- | remote.h | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -263,21 +263,6 @@ int resolve_remote_symref(struct ref *ref, struct ref *list); */ struct ref *ref_remove_duplicates(struct ref *ref_map); -/* - * Check whether a name matches any negative refspec in rs. Returns 1 if the - * name matches at least one negative refspec, and 0 otherwise. - */ -int omit_name_by_refspec(const char *name, struct refspec *rs); - -/* - * 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); - -int query_refspecs(struct refspec *rs, struct refspec_item *query); -char *apply_refspecs(struct refspec *rs, const char *name); - int check_push_refs(struct ref *src, struct refspec *rs); int match_push_refs(struct ref *src, struct ref **dst, struct refspec *rs, int flags); |
