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

Function guess_refs

help.c:875–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875static struct string_list guess_refs(const char *ref)
876{
877 struct similar_ref_cb ref_cb;
878 struct string_list similar_refs = STRING_LIST_INIT_DUP;
879
880 ref_cb.base_ref = ref;
881 ref_cb.similar_refs = &similar_refs;
882 refs_for_each_ref(get_main_ref_store(the_repository),
883 append_similar_ref, &ref_cb);
884 return similar_refs;
885}
886
887NORETURN void help_unknown_ref(const char *ref, const char *cmd,
888 const char *error)

Callers 1

help_unknown_refFunction · 0.85

Calls 2

refs_for_each_refFunction · 0.85
get_main_ref_storeFunction · 0.85

Tested by

no test coverage detected