Skip to content

CHANGELOG: add various changes introduced since v0.25#4254

Merged
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/changelog-v0.26
Jun 11, 2017
Merged

CHANGELOG: add various changes introduced since v0.25#4254
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/changelog-v0.26

Conversation

@pks-t
Copy link
Copy Markdown
Member

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

No description provided.

Copy link
Copy Markdown
Member Author

@pks-t pks-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two new API calls could be improved regarding their naming, I guess. This is now our last change to rename them before making them public. Opinions?

Comment thread CHANGELOG.md
linked worktree is in detached HEAD mode.

* `git_repository_item_path()` lets you retrieve paths for various repository
files.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would git_repository_file_path() be a better name?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that I prefer GIT_REPOSITORY_ITEM_* and git_repository_item_path over file... they're both a bit vague, though. But I can't think of anything superior offhand.

I'm happy with what we have, but if you think it's too vague then we can spend some brain cycles on something superior...?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it as is, then.

Comment thread CHANGELOG.md

* You can enable us calling `fsync` for various objects by setting the
`GIT_OPT_ENABLE_SYNCHRONIZED_OBJECT_CREATION` option with
`git_libgit2_opts()`.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option is not only about object creation, but it also modifies how we handle e.g. references. So maybe we should tweak this to GIT_OPT_ENABLE_SYNCHRONIZED_FILE_CREATION?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. I worry that FILE_CREATION makes it sound like we'll synchronize everything (including the working directory), which we don't...

GIT_OPT_ENABLE_SYNCHRONIZED_REPO_ACCESS...
GIT_OPT_ENABLE_SYNCHRONIZED_REPOSITORY...
GIT_OPT_ENABLE_FSYNC_OBJECTS_AND_REFS...
GIT_OPT_ENABLE_FSYNC_REPOSITORY...?

I dunno.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true. What about GIT_OPT_ENABLE_FSYNC_GITDIR? Granted, we do not currently synchronize e.g. the config files inside of the gitdir, but I think the term repo is not as unambiguous for non-git-devs as one might think.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm 👍 on that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to send a PR to fix that up or shall I?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got some spare time right now, will create a PR

@pks-t pks-t force-pushed the pks/changelog-v0.26 branch from f7087ed to a151088 Compare June 9, 2017 06:43
@pks-t
Copy link
Copy Markdown
Member Author

pks-t commented Jun 9, 2017

Updated to match new option name GIT_OPT_ENABLE_FSYNC_GITDIR introduced with #4259.

@ethomson ethomson merged commit 29ef7d3 into libgit2:master Jun 11, 2017
@pks-t pks-t deleted the pks/changelog-v0.26 branch June 12, 2017 06:09
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