git_repository_head_unborn

Check if the current branch is unborn

An unborn branch is one named from HEAD but which doesn't exist in the refs namespace, because it doesn't have any commit to point to.

extern (C) nothrow @nogc
int
git_repository_head_unborn

Parameters

repo libgit2_d.types.git_repository*

Repo to test

Return Value

Type: int

1 if the current branch is unborn, 0 if it's not; error code if there was an error

Meta