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

Function tmpfile_from_pattern

reftable/system.c:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16int tmpfile_from_pattern(struct reftable_tmpfile *out, const char *pattern)
17{
18 struct tempfile *tempfile;
19
20 tempfile = mks_tempfile(pattern);
21 if (!tempfile)
22 return REFTABLE_IO_ERROR;
23
24 out->path = tempfile->filename.buf;
25 out->fd = tempfile->fd;
26 out->priv = tempfile;
27
28 return 0;
29}
30
31int tmpfile_close(struct reftable_tmpfile *t)
32{

Callers 2

reftable_addition_addFunction · 0.85
stack_compact_lockedFunction · 0.85

Calls 1

mks_tempfileFunction · 0.85

Tested by

no test coverage detected