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
@ -36,7 +36,7 @@ static int use_done_feature;
|
||||
static int no_data;
|
||||
static int full_tree;
|
||||
static struct string_list extra_refs = STRING_LIST_INIT_NODUP;
|
||||
static struct refspec *refspecs;
|
||||
static struct refspec_item *refspecs;
|
||||
static int refspecs_nr;
|
||||
static int anonymize;
|
||||
|
||||
@ -979,7 +979,7 @@ static void handle_deletes(void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < refspecs_nr; i++) {
|
||||
struct refspec *refspec = &refspecs[i];
|
||||
struct refspec_item *refspec = &refspecs[i];
|
||||
if (*refspec->src)
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user