| 3351 | } |
| 3352 | |
| 3353 | int 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 | |
| 3369 | static int verify_bitmap_file(const struct git_hash_algo *algop, |
| 3370 | const char *name) |
no test coverage detected