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

Function reftable_stack_add

reftable/stack.c:724–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724int reftable_stack_add(struct reftable_stack *st,
725 int (*write)(struct reftable_writer *wr, void *arg),
726 void *arg, unsigned flags)
727{
728 int err = stack_try_add(st, write, arg, flags);
729 if (err < 0) {
730 if (err == REFTABLE_OUTDATED_ERROR) {
731 /* Ignore error return, we want to propagate
732 REFTABLE_OUTDATED_ERROR.
733 */
734 reftable_stack_reload(st);
735 }
736 return err;
737 }
738
739 return 0;
740}
741
742static int format_name(struct reftable_buf *dest, uint64_t min, uint64_t max)
743{

Calls 2

stack_try_addFunction · 0.85
reftable_stack_reloadFunction · 0.85