summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-10-30 06:32:56 +0100
committerJunio C Hamano <gitster@pobox.com>2013-10-30 14:16:34 -0700
commitf166db26af524278b42caac8f092d8de5e3e9c29 (patch)
tree91d648bd70d5baff475884ff79a986488d5ed4df
parenta0fbb5a329ea138e02698312f14ac1aea4b9b4c9 (diff)
downloadgit-f166db26af524278b42caac8f092d8de5e3e9c29.tar.gz
get_expanded_map(): add docstring
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--remote.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/remote.c b/remote.c
index e9fedfa918..bef81cdb6c 100644
--- a/remote.c
+++ b/remote.c
@@ -1553,6 +1553,13 @@ static int ignore_symref_update(const char *refname)
return (flag & REF_ISSYMREF);
}
+/*
+ * Create and return a list of (struct ref) consisting of copies of
+ * each remote_ref that matches refspec. refspec must be a pattern.
+ * Fill in the copies' peer_ref to describe the local tracking refs to
+ * which they map. Omit any references that would map to an existing
+ * local symbolic ref.
+ */
static struct ref *get_expanded_map(const struct ref *remote_refs,
const struct refspec *refspec)
{