libgit2/tests/worktree
Patrick Steinhardt 8264a30f4f worktree: support creating locked worktrees
When creating a new worktree, we do have a potential race with us
creating the worktree and another process trying to delete the same
worktree as it is being created. As such, the upstream git project has
introduced a flag `git worktree add --locked`, which will cause the
newly created worktree to be locked immediately after its creation. This
mitigates the race condition.

We want to be able to mirror the same behavior. As such, a new flag
`locked` is added to the options structure of `git_worktree_add` which
allows the user to enable this behavior.
2017-05-05 15:39:25 +02:00
..
config.c config: open configuration in commondir 2017-02-13 10:28:15 +01:00
merge.c repository: rename path_repository and path_gitlink 2017-02-13 11:07:52 +01:00
open.c worktree: implement git_worktree_open_from_repository 2017-03-17 09:26:13 +01:00
reflog.c refdb: look for reflog in commondir 2017-02-13 10:28:15 +01:00
refs.c refs: update worktree HEADs when renaming branches 2017-04-05 13:50:38 +02:00
repository.c worktree: implement functions reading HEAD 2017-02-13 11:03:01 +01:00
submodule.c worktree: introduce git_worktree_add options 2017-05-02 12:39:29 +02:00
worktree_helpers.c tests: implement worktree helpers 2017-02-13 10:13:02 +01:00
worktree_helpers.h tests: implement worktree helpers 2017-02-13 10:13:02 +01:00
worktree.c worktree: support creating locked worktrees 2017-05-05 15:39:25 +02:00