* Prune the loose versions of the references in the linked list * `*refs_to_prune`, freeing the entries in the list as we go. */
| 1352 | * `*refs_to_prune`, freeing the entries in the list as we go. |
| 1353 | */ |
| 1354 | static void prune_refs(struct files_ref_store *refs, struct ref_to_prune **refs_to_prune) |
| 1355 | { |
| 1356 | while (*refs_to_prune) { |
| 1357 | struct ref_to_prune *r = *refs_to_prune; |
| 1358 | *refs_to_prune = r->next; |
| 1359 | prune_ref(refs, r); |
| 1360 | free(r); |
| 1361 | } |
| 1362 | } |
| 1363 | |
| 1364 | /* |
| 1365 | * Return true if the specified reference should be packed. |
no test coverage detected