I'm not sure if worktree.h was intentionally left out of git2.h. Looks like an oversight since it is in fact documented.