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

Function bitmap_is_preferred_refname

pack-bitmap.c:3353–3367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3351}
3352
3353int bitmap_is_preferred_refname(struct repository *r, const char *refname)
3354{
3355 const struct string_list *preferred_tips = bitmap_preferred_tips(r);
3356 struct string_list_item *item;
3357
3358 if (!preferred_tips)
3359 return 0;
3360
3361 for_each_string_list_item(item, preferred_tips) {
3362 if (starts_with(refname, item->string))
3363 return 1;
3364 }
3365
3366 return 0;
3367}
3368
3369static int verify_bitmap_file(const struct git_hash_algo *algop,
3370 const char *name)

Callers 1

add_ref_to_pendingFunction · 0.85

Calls 2

bitmap_preferred_tipsFunction · 0.85
starts_withFunction · 0.85

Tested by

no test coverage detected