diff options
author | Linquize <linquize@yahoo.com.hk> | 2013-09-17 23:55:11 +0800 |
---|---|---|
committer | Linquize <linquize@yahoo.com.hk> | 2013-09-18 00:09:09 +0800 |
commit | a025907e0d751ed1022e65365243ae97acf3f598 (patch) | |
tree | 25d2bb82d3cf622c5d3a9f06c7d1f6ef2f295511 /src/fileops.h | |
parent | b99b10f285fec710273d1233b057ff33a6e44993 (diff) | |
download | libgit2-a025907e0d751ed1022e65365243ae97acf3f598.tar.gz |
Can load default template directory
Diffstat (limited to 'src/fileops.h')
-rw-r--r-- | src/fileops.h | 8 |
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, |