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

Function table_iter_seek_start

reftable/table.c:255–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static int table_iter_seek_start(struct table_iter *ti, uint8_t typ, int index)
256{
257 struct reftable_table_offsets *offs = table_offsets_for(ti->table, typ);
258 uint64_t off = offs->offset;
259 if (index) {
260 off = offs->index_offset;
261 if (off == 0) {
262 return 1;
263 }
264 typ = REFTABLE_BLOCK_TYPE_INDEX;
265 }
266
267 return table_iter_seek_to(ti, off, typ);
268}
269
270static int table_iter_seek_linear(struct table_iter *ti,
271 struct reftable_record *want)

Callers 2

table_iter_seekFunction · 0.85

Calls 2

table_offsets_forFunction · 0.85
table_iter_seek_toFunction · 0.85

Tested by

no test coverage detected