MCPcopy Create free account
hub / github.com/git/git / find_pack_entry_one

Function find_pack_entry_one

packfile.c:2084–2098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2082}
2083
2084off_t find_pack_entry_one(const struct object_id *oid,
2085 struct packed_git *p)
2086{
2087 const unsigned char *index = p->index_data;
2088 uint32_t result;
2089
2090 if (!index) {
2091 if (open_pack_index(p))
2092 return 0;
2093 }
2094
2095 if (bsearch_pack(oid, p, &result))
2096 return nth_packed_object_offset(p, result);
2097 return 0;
2098}
2099
2100int is_pack_valid(struct packed_git *p)
2101{

Callers 11

bitmap_position_packfileFunction · 0.85
in_bitmapped_packFunction · 0.85
packfile_list_find_oidFunction · 0.85
get_delta_baseFunction · 0.85
fill_pack_entryFunction · 0.85
check_connectedFunction · 0.85
verify_midx_fileFunction · 0.85
cmd__find_packFunction · 0.85
want_cruft_object_mtimeFunction · 0.85
want_object_in_pack_oneFunction · 0.85

Calls 3

open_pack_indexFunction · 0.85
bsearch_packFunction · 0.85
nth_packed_object_offsetFunction · 0.85

Tested by 1

cmd__find_packFunction · 0.68