git_worktree_lock

Lock worktree if not already locked

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

extern (C) nothrow @nogc
int
git_worktree_lock

Parameters

wt libgit2_d.types.git_worktree*

Worktree to lock

reason const(char)*

Reason why the working tree is being locked

Return Value

Type: int

0 on success, non-zero otherwise

Meta