From 29753cddc8007ac63754855d026fe5eca8897d04 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 9 Sep 2011 11:54:58 -0700 Subject: rename "match_refs()" to "match_push_refs()" Yes, there is a warning that says the function is only used by push in big red letters in front of this function, but it didn't say a more important thing it should have said: what the function is for and what it does. Rename it and document it to avoid future confusion. Signed-off-by: Junio C Hamano --- remote.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'remote.h') diff --git a/remote.h b/remote.h index 9a30a9dba..67294778b 100644 --- a/remote.h +++ b/remote.h @@ -96,8 +96,8 @@ void free_refspec(int nr_refspec, struct refspec *refspec); char *apply_refspecs(struct refspec *refspecs, int nr_refspec, const char *name); -int match_refs(struct ref *src, struct ref **dst, - int nr_refspec, const char **refspec, int all); +int match_push_refs(struct ref *src, struct ref **dst, + int nr_refspec, const char **refspec, int all); void set_ref_status_for_push(struct ref *remote_refs, int send_mirror, int force_update); -- cgit v1.2.1