Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-09-17 19:55:11 +0400
committerLinquize <linquize@yahoo.com.hk>2013-09-17 20:09:09 +0400
commita025907e0d751ed1022e65365243ae97acf3f598 (patch)
tree25d2bb82d3cf622c5d3a9f06c7d1f6ef2f295511 /src/fileops.h
parentb99b10f285fec710273d1233b057ff33a6e44993 (diff)
Can load default template directory
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 0ac9b9007..64d3da70a 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -306,6 +306,14 @@ extern int git_futils_find_xdg_file(git_buf *path, const char *filename);
*/
extern int git_futils_find_system_file(git_buf *path, const char *filename);
+/**
+ * Find template directory.
+ *
+ * @param path buffer to write the full path into
+ * @return 0 if found, GIT_ENOTFOUND if not found, or -1 on other OS error
+ */
+extern int git_futils_find_template_dir(git_buf *path);
+
typedef enum {
GIT_FUTILS_DIR_SYSTEM = 0,
GIT_FUTILS_DIR_GLOBAL = 1,