MCPcopy Index your code
hub / github.com/git/git / bitmap_position_packfile

Function bitmap_position_packfile

pack-bitmap.c:1070–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070static inline int bitmap_position_packfile(struct bitmap_index *bitmap_git,
1071 const struct object_id *oid)
1072{
1073 uint32_t pos;
1074 off_t offset = find_pack_entry_one(oid, bitmap_git->pack);
1075 if (!offset)
1076 return -1;
1077
1078 if (offset_to_pack_pos(bitmap_git->pack, offset, &pos) < 0)
1079 return -1;
1080 return pos;
1081}
1082
1083static int bitmap_position_midx(struct bitmap_index *bitmap_git,
1084 const struct object_id *oid)

Callers 1

bitmap_positionFunction · 0.85

Calls 2

find_pack_entry_oneFunction · 0.85
offset_to_pack_posFunction · 0.85

Tested by

no test coverage detected