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

Function stack_copy_tables

reftable/stack.c:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static struct reftable_table **stack_copy_tables(struct reftable_stack *st,
216 size_t cur_len)
217{
218 struct reftable_table **cur = reftable_calloc(cur_len, sizeof(*cur));
219 if (!cur)
220 return NULL;
221 for (size_t i = 0; i < cur_len; i++)
222 cur[i] = st->tables[i];
223 return cur;
224}
225
226static int reftable_stack_reload_once(struct reftable_stack *st,
227 const char **names,

Callers 1

Calls 1

reftable_callocFunction · 0.85

Tested by

no test coverage detected