WIP: Repository.xs: detached_head()