]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/repository.c
settings: rename `GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION`
authorPatrick Steinhardt <ps@pks.im>
Thu, 8 Jun 2017 19:40:18 +0000 (21:40 +0200)
committerPatrick Steinhardt <ps@pks.im>
Thu, 8 Jun 2017 19:40:18 +0000 (21:40 +0200)
commit6c23704df5d19239f8c3d6f69da62bdbe1cf287d
tree8bb883b7d787d5e28d2f68c08b22dc311d0e258e
parent458cea5c5b820f9766cb5ba4c3d89830592d655b
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.
12 files changed:
include/git2/common.h
src/indexer.c
src/object.c
src/object.h
src/odb_loose.c
src/refdb_fs.c
src/repository.c
src/repository.h
src/settings.c
tests/odb/loose.c
tests/pack/packbuilder.c
tests/refs/create.c