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

Function reftable_stack_new_addition

reftable/stack.c:835–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835int reftable_stack_new_addition(struct reftable_addition **dest,
836 struct reftable_stack *st,
837 unsigned int flags)
838{
839 int err;
840
841 REFTABLE_CALLOC_ARRAY(*dest, 1);
842 if (!*dest)
843 return REFTABLE_OUT_OF_MEMORY_ERROR;
844
845 err = reftable_stack_init_addition(*dest, st, flags);
846 if (err) {
847 reftable_free(*dest);
848 *dest = NULL;
849 }
850
851 return err;
852}
853
854int reftable_addition_add(struct reftable_addition *add,
855 int (*write_table)(struct reftable_writer *wr,

Calls 2

reftable_freeFunction · 0.85