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
@ -1746,11 +1746,11 @@ static int push_check(int argc, const char **argv, const char *prefix)
|
||||
if (argc > 2) {
|
||||
int i, refspec_nr = argc - 2;
|
||||
struct ref *local_refs = get_local_heads();
|
||||
struct refspec *refspec = parse_push_refspec(refspec_nr,
|
||||
struct refspec_item *refspec = parse_push_refspec(refspec_nr,
|
||||
argv + 2);
|
||||
|
||||
for (i = 0; i < refspec_nr; i++) {
|
||||
struct refspec *rs = refspec + i;
|
||||
struct refspec_item *rs = refspec + i;
|
||||
|
||||
if (rs->pattern || rs->matching)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user