MCPcopy Index your code
hub / github.com/git/git / refs_for_each_replace_ref

Function refs_for_each_replace_ref

refs.c:1965–1974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1963}
1964
1965int refs_for_each_replace_ref(struct ref_store *refs, refs_for_each_cb cb, void *cb_data)
1966{
1967 const char *git_replace_ref_base = ref_namespace[NAMESPACE_REPLACE].ref;
1968 struct refs_for_each_ref_options opts = {
1969 .prefix = git_replace_ref_base,
1970 .trim_prefix = strlen(git_replace_ref_base),
1971 .flags = REFS_FOR_EACH_INCLUDE_BROKEN,
1972 };
1973 return refs_for_each_ref_ext(refs, cb, cb_data, &opts);
1974}
1975
1976static int qsort_strcmp(const void *va, const void *vb)
1977{

Callers 2

prepare_replace_objectFunction · 0.85
list_replace_refsFunction · 0.85

Calls 1

refs_for_each_ref_extFunction · 0.85

Tested by

no test coverage detected