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
6
branch.c
6
branch.c
@ -9,7 +9,7 @@
|
||||
#include "worktree.h"
|
||||
|
||||
struct tracking {
|
||||
struct refspec spec;
|
||||
struct refspec_item spec;
|
||||
char *src;
|
||||
const char *remote;
|
||||
int matches;
|
||||
@ -219,8 +219,8 @@ int validate_new_branchname(const char *name, struct strbuf *ref, int force)
|
||||
static int check_tracking_branch(struct remote *remote, void *cb_data)
|
||||
{
|
||||
char *tracking_branch = cb_data;
|
||||
struct refspec query;
|
||||
memset(&query, 0, sizeof(struct refspec));
|
||||
struct refspec_item query;
|
||||
memset(&query, 0, sizeof(struct refspec_item));
|
||||
query.dst = tracking_branch;
|
||||
return !remote_find_tracking(remote, &query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user