libgit2

git_repository_is_worktree

Version:

Check if a repository is a linked work tree

Signature

int git_repository_is_worktree(git_repository *repo);

Parameters

In
repo

Repo to test

Returns

int

1 if the repository is a linked work tree, 0 otherwise.

Versions