libgit2

git_worktree_lookup

Version:

Lookup a working tree by its name for a given repository

Signature

int git_worktree_lookup(git_worktree **out, git_repository *repo, const char *name);

Parameters

In
out

Output pointer to looked up worktree or NULL

In
repo

The repository containing worktrees

const char *
In
name

Name of the working tree to look up

Returns

int

0 or an error code

Versions