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

Function find_ref_by_name

remote.c:1525–1531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1523}
1524
1525struct ref *find_ref_by_name(const struct ref *list, const char *name)
1526{
1527 for ( ; list; list = list->next)
1528 if (!strcmp(list->name, name))
1529 return (struct ref *)list;
1530 return NULL;
1531}
1532
1533static void prepare_ref_index(struct string_list *ref_index, struct ref *ref)
1534{

Callers 8

receive_statusFunction · 0.85
guess_remote_headFunction · 0.85
push_update_ref_statusFunction · 0.85
set_headFunction · 0.85
find_remote_branchFunction · 0.85
wanted_peer_refsFunction · 0.85
cmd_cloneFunction · 0.85
get_head_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected