| 291 | } |
| 292 | |
| 293 | static 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 | |
| 312 | static void send_filter(struct fetch_pack_args *args, |
| 313 | struct strbuf *req_buf, |
no test coverage detected