| 69 | } |
| 70 | |
| 71 | struct object_entry *packlist_find(struct packing_data *pdata, |
| 72 | const struct object_id *oid) |
| 73 | { |
| 74 | uint32_t i; |
| 75 | int found; |
| 76 | |
| 77 | if (!pdata->index_size) |
| 78 | return NULL; |
| 79 | |
| 80 | i = locate_object_entry_hash(pdata, oid, &found); |
| 81 | |
| 82 | if (!found) |
| 83 | return NULL; |
| 84 | |
| 85 | return &pdata->objects[pdata->index[i] - 1]; |
| 86 | } |
| 87 | |
| 88 | static void prepare_in_pack_by_idx(struct packing_data *pdata) |
| 89 | { |
no test coverage detected