fast tagging by writing directly to packed-refs file