git_worktree_lock

Lock worktree if not already locked

Lock a worktree, optionally specifying a reason why the linked working tree is being locked.

@param wt Worktree to lock @param reason Reason why the working tree is being locked @return 0 on success, non-zero otherwise

extern (C) nothrow @nogc
int
git_worktree_lock

Meta