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

Function stack_filename

reftable/stack.c:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "writer.h"
19
20static int stack_filename(struct reftable_buf *dest, struct reftable_stack *st,
21 const char *name)
22{
23 int err;
24 reftable_buf_reset(dest);
25 if ((err = reftable_buf_addstr(dest, st->reftable_dir)) < 0 ||
26 (err = reftable_buf_addstr(dest, "/")) < 0 ||
27 (err = reftable_buf_addstr(dest, name)) < 0)
28 return err;
29 return 0;
30}
31
32static ssize_t reftable_write_data(int fd, const void *data, size_t size)
33{

Callers 7

reftable_stack_destroyFunction · 0.85
reftable_addition_closeFunction · 0.85
reftable_addition_addFunction · 0.85
stack_compact_lockedFunction · 0.85
stack_compact_rangeFunction · 0.85
remove_maybe_stale_tableFunction · 0.85

Calls 2

reftable_buf_resetFunction · 0.85
reftable_buf_addstrFunction · 0.85

Tested by

no test coverage detected