summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-06-08 21:40:18 +0200
committerPatrick Steinhardt <ps@pks.im>2017-06-08 21:40:18 +0200
commit6c23704df5d19239f8c3d6f69da62bdbe1cf287d (patch)
tree8bb883b7d787d5e28d2f68c08b22dc311d0e258e /include/git2/common.h
parent458cea5c5b820f9766cb5ba4c3d89830592d655b (diff)
downloadlibgit2-6c23704df5d19239f8c3d6f69da62bdbe1cf287d.tar.gz
settings: rename `GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION`
Initially, the setting has been solely used to enable the use of `fsync()` when creating objects. Since then, the use has been extended to also cover references and index files. As the option is not yet part of any release, we can still correct this by renaming the option to something more sensible, indicating not only correlation to objects. This commit renames the option to `GIT_OPT_ENABLE_FSYNC_GITDIR`. We also move the variable from the object to repository source code.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index d83e8c3a0..f65cfdd01 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -179,7 +179,7 @@ typedef enum {
GIT_OPT_SET_SSL_CIPHERS,
GIT_OPT_GET_USER_AGENT,
GIT_OPT_ENABLE_OFS_DELTA,
- GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION,
+ GIT_OPT_ENABLE_FSYNC_GITDIR,
GIT_OPT_GET_WINDOWS_SHAREMODE,
GIT_OPT_SET_WINDOWS_SHAREMODE,
GIT_OPT_ENABLE_STRICT_HASH_VERIFICATION,
@@ -331,9 +331,9 @@ typedef enum {
* > Packfiles containing offset deltas can still be read.
* > This defaults to enabled.
*
- * * opts(GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION, int enabled)
+ * * opts(GIT_OPT_ENABLE_FSYNC_GITDIR, int enabled)
*
- * > Enable synchronized writes of new objects using `fsync`
+ * > Enable synchronized writes of files in the gitdir using `fsync`
* > (or the platform equivalent) to ensure that new object data
* > is written to permanent storage, not simply cached. This
* > defaults to disabled.