libgit2

git_worktree_list

Version:

List names of linked working trees

The returned list should be released with git_strarray_free when no longer needed.

Signature

int git_worktree_list(git_strarray *out, git_repository *repo);

Parameters

In
out

pointer to the array of working tree names

In
repo

the repo to use when listing working trees

Returns

int

0 or an error code

Versions