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

Function format_name

reftable/stack.c:742–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740}
741
742static int format_name(struct reftable_buf *dest, uint64_t min, uint64_t max)
743{
744 char buf[100];
745 uint32_t rnd = reftable_rand();
746 snprintf(buf, sizeof(buf), "0x%012" PRIx64 "-0x%012" PRIx64 "-%08x",
747 min, max, rnd);
748 reftable_buf_reset(dest);
749 return reftable_buf_addstr(dest, buf);
750}
751
752void reftable_addition_destroy(struct reftable_addition *add)
753{

Callers 3

reftable_addition_addFunction · 0.85
stack_compact_lockedFunction · 0.85
stack_compact_rangeFunction · 0.85

Calls 3

reftable_randFunction · 0.85
reftable_buf_resetFunction · 0.85
reftable_buf_addstrFunction · 0.85

Tested by

no test coverage detected