Skip to content

Commit

Permalink
get_expanded_map(): add docstring
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Oct 30, 2013
1 parent a0fbb5a commit f166db2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f166db2

Please sign in to comment.