diff options
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/common.h | 13 | ||||
| -rw-r--r-- | include/git2/errors.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index c909f86ca..6d2092028 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -180,6 +180,8 @@ typedef enum { GIT_OPT_GET_USER_AGENT, GIT_OPT_ENABLE_OFS_DELTA, GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION, + GIT_OPT_GET_WINDOWS_SHAREMODE, + GIT_OPT_SET_WINDOWS_SHAREMODE, } git_libgit2_opt_t; /** @@ -284,6 +286,17 @@ typedef enum { * > - `user_agent` is the value that will be delivered as the * > User-Agent header on HTTP requests. * + * * opts(GIT_OPT_SET_WINDOWS_SHAREMODE, unsigned long value) + * + * > Set the share mode used when opening files on Windows. + * > For more information, see the documentation for CreateFile. + * > The default is: FILE_SHARE_READ | FILE_SHARE_WRITE. This is + * > ignored and unused on non-Windows platforms. + * + * * opts(GIT_OPT_GET_WINDOWS_SHAREMODE, unsigned long *value) + * + * > Get the share mode used when opening files on Windows. + * * * opts(GIT_OPT_ENABLE_STRICT_OBJECT_CREATION, int enabled) * * > Enable strict input validation when creating new objects diff --git a/include/git2/errors.h b/include/git2/errors.h index 3b746b758..71bff0f9d 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -53,6 +53,7 @@ typedef enum { GIT_PASSTHROUGH = -30, /**< Internal only */ GIT_ITEROVER = -31, /**< Signals end of iteration with iterator */ + GIT_RETRY = -32, /**< Internal only */ } git_error_code; /** |
