diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-03-05 14:34:32 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-05 14:34:32 +0200 |
| commit | 55ffebe37768b2b839f5501f76e77e89d9f91882 (patch) | |
| tree | c9275716290855fd909df22c4163bf7797da02b8 /src/fileops.h | |
| parent | 246eba80af31d25a1fb14e707f79374cf91f8bb7 (diff) | |
| download | libgit2-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.h | 1 |
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) |
