git_worktree_is_locked

Check if worktree is locked

A worktree may be locked if the linked working tree is stored on a portable device which is not available.

extern (C) nothrow @nogc
int
git_worktree_is_locked

Parameters

reason libgit2_d.buffer.git_buf*

Buffer to store reason in. If null no reason is stored.

wt const(libgit2_d.types.git_worktree)*

Worktree to check

Return Value

Type: int

0 when the working tree not locked, a value greater than zero if it is locked, less than zero if there was an error

Meta