Skip to content

Added the bindings for the Worktree API #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

wtrep
Copy link

@wtrep wtrep commented Oct 25, 2022

This PR adds bindings for interacting with the libgit2 Worktree API (https://libgit2.org/libgit2/#v1.5.0/group/worktree).

Some constructs are weird, but are similar to the rest of the repo (like the populateAddWorktreeOptions which init the struct but sometime returns nil). All the "populate" are the same so I preferred being consistant with the rest of the codebase.

I ran the tests as well.

fix bindings

updated doc

added tests

not sure why I ignored that error

need to lock before calling unlock
@wtrep wtrep force-pushed the feature/DT-5224-worktree-api branch from 571f9c2 to bdf5a6f Compare October 25, 2022 20:34
@pballandras
Copy link

👀 👀 👀

@pballandras pballandras merged commit 9232cba into main Oct 27, 2022
@wtrep wtrep deleted the feature/DT-5224-worktree-api branch July 27, 2023 04:06
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