is_head_unborn


Description:

public bool is_head_unborn () throws Error

Checks if this's HEAD is an orphan.

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

Parameters:

this

a Repository.

Returns:

true if the current branch is an orphan.