summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-03-05 14:34:32 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-05 14:34:32 +0200
commit55ffebe37768b2b839f5501f76e77e89d9f91882 (patch)
treec9275716290855fd909df22c4163bf7797da02b8 /src/fileops.h
parent246eba80af31d25a1fb14e707f79374cf91f8bb7 (diff)
downloadlibgit2-55ffebe37768b2b839f5501f76e77e89d9f91882.tar.gz
Fix creation of deeply-rooted references
Use a new `gitfo_creat_force` that will create the full path to a file before creating it. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index fd150df5e..5aa302b54 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -57,6 +57,7 @@ typedef struct { /* file io buffer */
extern int gitfo_exists(const char *path);
extern int gitfo_open(const char *path, int flags);
extern int gitfo_creat(const char *path, int mode);
+extern int gitfo_creat_force(const char *path, int mode);
extern int gitfo_isdir(const char *path);
extern int gitfo_mkdir_recurs(const char *path, int mode);
#define gitfo_close(fd) close(fd)