diff options
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index 7a4c54c10..7e7c7e31f 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -123,6 +123,29 @@ enum { */ GIT_EXTERN(int) git_libgit2_capabilities(void); + +enum { + GIT_OPT_MWINDOW_SIZE, + GIT_OPT_MWINDOW_MAPPED_LIMIT +}; + +/** + * Set or query a library global option + * + * Available options: + * + * opts(GIT_OPT_MWINDOW_SIZE, size_t): + * set the maximum mmap window size + * + * opts(GIT_OPT_MWINDOW_MAPPED_LIMIT, size_t): + * set the maximum amount of memory that can be mapped at any time + * by the library + * + * @param option Option key + * @param ... value to set the option + */ +GIT_EXTERN(void) git_libgit2_opts(int option, ...); + /** @} */ GIT_END_DECL |