Make stuff like git ff just work without a ref.