Add the ability to peel a reference to a commit, tree or tag