diff options
| author | Carlos MartÃn Nieto <carlosmn@github.com> | 2017-04-17 17:19:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-17 17:19:03 +0200 |
| commit | 8d89e409616831b7b30a5ca7b89354957137b65e (patch) | |
| tree | a7e29189c8d2e4d7eedcca34e273bdc905e7a7a4 /include | |
| parent | f9d3b0d05f19a59e3327deabc2edc93e507c6aa3 (diff) | |
| parent | 86536c7e45cce275f4aef187b44eb21f2304489a (diff) | |
| download | libgit2-8d89e409616831b7b30a5ca7b89354957137b65e.tar.gz | |
Merge pull request #4192 from libgit2/ethomson/win32_posix
Refactor some of the win32 POSIX emulation
Diffstat (limited to 'include')
| -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; /** |
