diff options
author | Edward Thomson <ethomson@github.com> | 2016-12-13 10:58:43 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2017-02-28 13:27:49 +0000 |
commit | 6d3ad7e09ee4b101e8e68f38783e3e4139bc2691 (patch) | |
tree | 9d8da7807ac802c2c77eef1a6a37a420f0468466 /include | |
parent | fc27fe213c8462c8413486b8c2bfb82b25b3e7e6 (diff) | |
download | libgit2-6d3ad7e09ee4b101e8e68f38783e3e4139bc2691.tar.gz |
Add `ENABLE_SYNCHRONIZED_OBJECT_CREATION` option
Allow users to enable `SYNCHRONIZED_OBJECT_CREATION` with a setting.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index f13dfd509..f5d37ede4 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -179,6 +179,7 @@ typedef enum { GIT_OPT_SET_SSL_CIPHERS, GIT_OPT_GET_USER_AGENT, GIT_OPT_ENABLE_OFS_DELTA, + GIT_OPT_ENABLE_SYNCHRONIZED_OBJECT_CREATION, } git_libgit2_opt_t; /** @@ -316,6 +317,13 @@ typedef enum { * > Packfiles containing offset deltas can still be read. * > This defaults to enabled. * + * * opts(GIT_OPT_ENABLE_SYNCHRONIZED_OBJECT_CREATION, int enabled) + * + * > Enable synchronized writes of new objects using `fsync` + * > (or the platform equivalent) to ensure that new object data + * > is written to permanent storage, not simply cached. This + * > defaults to disabled. + * * @param option Option key * @param ... value to set the option * @return 0 on success, <0 on failure |