diff options
| author | Vicent Martà <vicent@github.com> | 2013-09-17 10:21:22 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-09-17 10:21:22 -0700 |
| commit | 3d4f169867faf79abcfdff6667b361d88bb2e3b3 (patch) | |
| tree | 89e3162ae00a27e2a63f947b27fe0fa80a2fa247 /include/git2 | |
| parent | bb371b62e950e3307d3acf2f772495a60565d266 (diff) | |
| parent | a025907e0d751ed1022e65365243ae97acf3f598 (diff) | |
| download | libgit2-3d4f169867faf79abcfdff6667b361d88bb2e3b3.tar.gz | |
Merge pull request #1858 from linquize/win32-template-dir
Configurable template dir for Win32
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/common.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index d7df7327e..bb2e63637 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -136,7 +136,9 @@ typedef enum { GIT_OPT_SET_CACHE_OBJECT_LIMIT, GIT_OPT_SET_CACHE_MAX_SIZE, GIT_OPT_ENABLE_CACHING, - GIT_OPT_GET_CACHED_MEMORY + GIT_OPT_GET_CACHED_MEMORY, + GIT_OPT_GET_TEMPLATE_PATH, + GIT_OPT_SET_TEMPLATE_PATH } git_libgit2_opt_t; /** @@ -210,6 +212,18 @@ typedef enum { * > Get the current bytes in cache and the maximum that would be * > allowed in the cache. * + * * opts(GIT_OPT_GET_SEARCH_PATH, char *out, size_t len) + * + * > Get the default template path. + * > The path is written to the `out` + * > buffer up to size `len`. Returns GIT_EBUFS if buffer is too small. + * + * * opts(GIT_OPT_SET_TEMPLATE_PATH, const char *path) + * + * > Set the default template path. + * > + * > - `path` directory of template. + * * @param option Option key * @param ... value to set the option * @return 0 on success, <0 on failure |
