add Repository::isHeadDetached