aboutsummaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-09-09 11:54:58 -0700
committerJunio C Hamano <gitster@pobox.com>2011-09-12 16:41:53 -0700
commit29753cddc8007ac63754855d026fe5eca8897d04 (patch)
tree6dfdf6cae4ff4c1729cf0b8dd400b99d6d494b1a /transport.c
parente6bcd979684d5a050bcb5d642e761e0ea350c6ec (diff)
downloadgit-29753cddc8007ac63754855d026fe5eca8897d04.tar.gz
git-29753cddc8007ac63754855d026fe5eca8897d04.tar.xz
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 <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transport.c b/transport.c
index fa279d531..740a73935 100644
--- a/transport.c
+++ b/transport.c
@@ -1033,8 +1033,8 @@ int transport_push(struct transport *transport,
if (flags & TRANSPORT_PUSH_MIRROR)
match_flags |= MATCH_REFS_MIRROR;
- if (match_refs(local_refs, &remote_refs,
- refspec_nr, refspec, match_flags)) {
+ if (match_push_refs(local_refs, &remote_refs,
+ refspec_nr, refspec, match_flags)) {
return -1;
}