summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-07-26 16:07:01 -0700
committerRussell Belfer <rb@github.com>2012-08-22 16:06:22 -0700
commit662880ca60e4d1662bb10648522242ac54797720 (patch)
tree8076f921e5a02c540f2ccf3358715be985c6f392 /src/fileops.h
parent5fdc41e76591aebdbae3b49440bc2c8b2430718c (diff)
downloadlibgit2-662880ca60e4d1662bb10648522242ac54797720.tar.gz
Add git_repository_init_ext for power initters
The extended version of repository init adds support for many of the things that you can do with `git init` and sets up structures that will make it easier to extend further in the future.
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 594eacbd0..edfcb7dd0 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -48,6 +48,11 @@ extern int git_futils_creat_locked(const char *path, const mode_t mode);
extern int git_futils_creat_locked_withpath(const char *path, const mode_t dirmode, const mode_t mode);
/**
+ * Create a directory if it does not exist
+ */
+extern int git_futils_mkdir_q(const char *path, const mode_t mode);
+
+/**
* Create a path recursively
*
* If a base parameter is being passed, it's expected to be valued with a path pointing to an already