diff options
author | Brandon Williams <bmwill@google.com> | 2018-05-16 22:57:49 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-17 21:19:41 (GMT) |
commit | 0ad4a5ff50dbc839ae26aa60c03b55bf416b6000 (patch) | |
tree | d57cea89eb1cf8d6d3a063278540a6268d5be479 /builtin/clone.c | |
parent | ec0cb496553ac82f97205a415ca77618406b30e3 (diff) | |
download | git-0ad4a5ff50dbc839ae26aa60c03b55bf416b6000.zip git-0ad4a5ff50dbc839ae26aa60c03b55bf416b6000.tar.gz git-0ad4a5ff50dbc839ae26aa60c03b55bf416b6000.tar.bz2 |
refspec: rename struct refspec to struct refspec_item
In preparation for introducing an abstraction around a collection of
refspecs (much like how a 'struct pathspec' is a collection of 'struct
pathspec_item's) rename the existing 'struct refspec' to 'struct
refspec_item'.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r-- | builtin/clone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 6d1614e..854088a 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -547,7 +547,7 @@ static struct ref *find_remote_branch(const struct ref *refs, const char *branch } static struct ref *wanted_peer_refs(const struct ref *refs, - struct refspec *refspec) + struct refspec_item *refspec) { struct ref *head = copy_ref(find_ref_by_name(refs, "HEAD")); struct ref *local_refs = head; @@ -895,7 +895,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix) int err = 0, complete_refs_before_fetch = 1; int submodule_progress; - struct refspec *refspec; + struct refspec_item *refspec; const char *fetch_pattern; fetch_if_missing = 0; |