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>
This commit is contained in:

committed by
Junio C Hamano

parent
ec0cb49655
commit
0ad4a5ff50
@ -80,8 +80,8 @@ static const char *map_refspec(const char *ref,
|
||||
return ref;
|
||||
|
||||
if (remote->push) {
|
||||
struct refspec query;
|
||||
memset(&query, 0, sizeof(struct refspec));
|
||||
struct refspec_item query;
|
||||
memset(&query, 0, sizeof(struct refspec_item));
|
||||
query.src = matched->name;
|
||||
if (!query_refspecs(remote->push, remote->push_refspec_nr, &query) &&
|
||||
query.dst) {
|
||||
|
Reference in New Issue
Block a user