libgit2

git_worktree_validate

Version:

Check if worktree is valid

A valid worktree requires both the git data structures inside the linked parent repository and the linked working copy to be present.

Signature

int git_worktree_validate(const git_worktree *wt);

Parameters

In
wt

Worktree to check

Returns

int

0 when worktree is valid, error-code otherwise

Versions