606
void *cb_data)
607
{
608
struct object_id peeled;
609
- struct object_entry *entry = packlist_find(&to_pack, oid->hash, NULL);
609
+ struct object_entry *entry = packlist_find(&to_pack, oid, NULL);
610
611
if (entry)
612
entry->tagged = 1;
613
if (!peel_ref(path, &peeled)) {
614
- entry = packlist_find(&to_pack, peeled.hash, NULL);
614
+ entry = packlist_find(&to_pack, &peeled, NULL);
615
if (entry)
616
entry->tagged = 1;
617
}
996
{
997
struct object_entry *entry;
998
999
- entry = packlist_find(&to_pack, oid->hash, index_pos);
999
+ entry = packlist_find(&to_pack, oid, index_pos);
1000
if (!entry)
1001
return 0;
1002
1494
if (!base_sha1)
1495
return 0;
1496
1497
+ oidread(&base_oid, base_sha1);
1498
+
1499
/*
1500
* First see if we're already sending the base (or it's explicitly in
1501
* our "excluded" list).
1502
*/
1501
- base = packlist_find(&to_pack, base_sha1, NULL);
1503
+ base = packlist_find(&to_pack, &base_oid, NULL);
1504
if (base) {
1505
if (!in_same_island(&delta->idx.oid, &base->idx.oid))
1506
return 0;
1513
* even if it was buried too deep in history to make it into the
1514
* packing list.
1515
*/
1514
- oidread(&base_oid, base_sha1);
1516
if (thin && bitmap_has_oid_in_uninteresting(bitmap_git, &base_oid)) {
1517
if (use_delta_islands) {
1518
if (!in_same_island(&delta->idx.oid, &base_oid))
2572
* it was included via bitmaps, we would not have parsed it
2573
* previously).
2574
*/
2574
- if (packlist_find(&to_pack, oid->hash, NULL))
2575
+ if (packlist_find(&to_pack, oid, NULL))
2576
return;
2577
2578
tag = lookup_tag(the_repository, oid);
2596
2597
if (starts_with(path, "refs/tags/") && /* is a tag? */
2598
!peel_ref(path, &peeled) && /* peelable? */
2598
- packlist_find(&to_pack, peeled.hash, NULL)) /* object packed? */
2599
+ packlist_find(&to_pack, &peeled, NULL)) /* object packed? */
2600
add_tag_chain(oid);
2601
return 0;
2602
}
2796
for (p = strchr(name, '/'); p; p = strchr(p + 1, '/'))
2797
depth++;
2798
2798
- ent = packlist_find(&to_pack, obj->oid.hash, NULL);
2799
+ ent = packlist_find(&to_pack, &obj->oid, NULL);
2800
if (ent && depth > oe_tree_depth(&to_pack, ent))
2801
oe_set_tree_depth(&to_pack, ent, depth);
2802
}
3027
3028
for (i = 0; i < p->num_objects; i++) {
3029
nth_packed_object_oid(&oid, p, i);
3029
- if (!packlist_find(&to_pack, oid.hash, NULL) &&
3030
+ if (!packlist_find(&to_pack, &oid, NULL) &&
3031
!has_sha1_pack_kept_or_nonlocal(&oid) &&
3032
!loosened_object_can_be_discarded(&oid, p->mtime))
3033
if (force_object_loose(&oid, p->mtime))