Skip to content

settings: rename GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION#4259

Merged
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/fsync-option-rename
Jun 8, 2017
Merged

settings: rename GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION#4259
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/fsync-option-rename

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Jun 8, 2017

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.

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.
@ethomson ethomson merged commit e476d52 into libgit2:master Jun 8, 2017
@pks-t pks-t deleted the pks/fsync-option-rename branch September 15, 2017 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants