git_repository_head_for_worktree

Retrieve the referenced HEAD for the worktree

extern (C) nothrow @nogc
int
git_repository_head_for_worktree

Parameters

out_ libgit2_d.types.git_reference**

pointer to the reference which will be retrieved

repo libgit2_d.types.git_repository*

a repository object

name const(char)*

name of the worktree to retrieve HEAD for

Return Value

Type: int

0 when successful, error-code otherwise

Meta