MCPcopy Create free account
hub / github.com/git/git / check_tracking_branch

Function check_tracking_branch

branch.c:489–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489static int check_tracking_branch(struct remote *remote, void *cb_data)
490{
491 char *tracking_branch = cb_data;
492 struct refspec_item query;
493 int res;
494 memset(&query, 0, sizeof(struct refspec_item));
495 query.dst = tracking_branch;
496 res = !remote_find_tracking(remote, &query);
497 free(query.src);
498 return res;
499}
500
501static int validate_remote_tracking_branch(char *ref)
502{

Callers

nothing calls this directly

Calls 1

remote_find_trackingFunction · 0.85

Tested by

no test coverage detected