| 39 | } |
| 40 | |
| 41 | int tmpfile_delete(struct reftable_tmpfile *t) |
| 42 | { |
| 43 | struct tempfile *tempfile = t->priv; |
| 44 | int ret = delete_tempfile(&tempfile); |
| 45 | *t = REFTABLE_TMPFILE_INIT; |
| 46 | if (ret < 0) |
| 47 | return REFTABLE_IO_ERROR; |
| 48 | return 0; |
| 49 | } |
| 50 | |
| 51 | int tmpfile_rename(struct reftable_tmpfile *t, const char *path) |
| 52 | { |
no test coverage detected