Can I use LibGit2 to create an orphan branch?

I’ve got LibGit2.branch! figures out and also git checkout --orphan but is there a way to create specifically an orphan branch?