diff options
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fileops.h b/src/fileops.h index 16e71038b..fd150df5e 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -68,7 +68,13 @@ extern git_off_t gitfo_size(git_file fd); extern int gitfo_read_file(gitfo_buf *obj, const char *path); extern void gitfo_free_buf(gitfo_buf *obj); -extern int gitfo_move_file(char *from, char *to); + +/* Move (rename) a file; this operation is atomic */ +extern int gitfo_mv(const char *from, const char *to); + +/* Move a file (forced); this will create the destination + * path if it doesn't exist */ +extern int gitfo_mv_force(const char *from, const char *to); #define gitfo_stat(p,b) stat(p, b) #define gitfo_fstat(f,b) fstat(f, b) |
