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

Function dump_stack

t/helper/test-reftable.c:174–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174static int dump_stack(const char *stackdir, uint32_t hash_id)
175{
176 struct reftable_stack *stack = NULL;
177 struct reftable_write_options opts = { .hash_id = hash_id };
178 struct reftable_merged_table *merged = NULL;
179
180 int err = reftable_new_stack(&stack, stackdir, &opts);
181 if (err < 0)
182 goto done;
183
184 merged = reftable_stack_merged_table(stack);
185 err = dump_table(merged);
186done:
187 if (stack)
188 reftable_stack_destroy(stack);
189 return err;
190}
191
192static int dump_reftable(const char *tablename)
193{

Callers 1

cmd__dump_reftableFunction · 0.85

Calls 4

reftable_new_stackFunction · 0.85
dump_tableFunction · 0.85
reftable_stack_destroyFunction · 0.85

Tested by

no test coverage detected