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:
authorVicent Martí <vicent@github.com>2013-09-17 21:21:22 +0400
committerVicent Martí <vicent@github.com>2013-09-17 21:21:22 +0400
commit3d4f169867faf79abcfdff6667b361d88bb2e3b3 (patch)
tree89e3162ae00a27e2a63f947b27fe0fa80a2fa247 /src/fileops.h
parentbb371b62e950e3307d3acf2f772495a60565d266 (diff)
parenta025907e0d751ed1022e65365243ae97acf3f598 (diff)
Merge pull request #1858 from linquize/win32-template-dir
Configurable template dir for Win32
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 16bc58e93..6bd693b99 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -306,11 +306,20 @@ 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,
GIT_FUTILS_DIR_XDG = 2,
- GIT_FUTILS_DIR__MAX = 3,
+ GIT_FUTILS_DIR_TEMPLATE = 3,
+ GIT_FUTILS_DIR__MAX = 4,
} git_futils_dir_t;
/**