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

Function mark_tips

fetch-pack.c:293–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static void mark_tips(struct fetch_negotiator *negotiator,
294 const struct oid_array *negotiation_restrict_tips)
295{
296 struct refs_for_each_ref_options opts = {
297 .flags = REFS_FOR_EACH_INCLUDE_BROKEN,
298 };
299 int i;
300
301 if (!negotiation_restrict_tips) {
302 refs_for_each_ref_ext(get_main_ref_store(the_repository),
303 rev_list_insert_ref_oid, negotiator, &opts);
304 return;
305 }
306
307 for (i = 0; i < negotiation_restrict_tips->nr; i++)
308 rev_list_insert_ref(negotiator, &negotiation_restrict_tips->oid[i]);
309 return;
310}
311
312static void send_filter(struct fetch_pack_args *args,
313 struct strbuf *req_buf,

Callers 3

find_commonFunction · 0.85
do_fetch_pack_v2Function · 0.85
negotiate_using_fetchFunction · 0.85

Calls 3

refs_for_each_ref_extFunction · 0.85
get_main_ref_storeFunction · 0.85
rev_list_insert_refFunction · 0.85

Tested by

no test coverage detected