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

Function tmpfile_close

reftable/system.c:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31int tmpfile_close(struct reftable_tmpfile *t)
32{
33 struct tempfile *tempfile = t->priv;
34 int ret = close_tempfile_gently(tempfile);
35 t->fd = -1;
36 if (ret < 0)
37 return REFTABLE_IO_ERROR;
38 return 0;
39}
40
41int tmpfile_delete(struct reftable_tmpfile *t)
42{

Callers 2

reftable_addition_addFunction · 0.85
stack_compact_lockedFunction · 0.85

Calls 1

close_tempfile_gentlyFunction · 0.85

Tested by

no test coverage detected