From: Björn Steinbrink Date: Thu, 10 Dec 2009 12:47:01 GMT Subject: Re: [PATCH] tag -d: print sha1 of deleted tag Message-ID: <20091210124701.GA12521@atjola.homenet> In-Reply-To: <3b0a7bfa75126e4c13ec15a4357645b2bfd14b5b.1260447713.git.git@drmicha.warpmail.net> On 2009.12.10 13:23:43 +0100, Michael J Gruber wrote: > Print the sha1 of the deleted tag (in addition to the tag name) so that > one can easily recreate a mistakenly deleted tag: > > git tag -d tagname > Deleted tag 'tagname' DEADBEEF > git tag 'tagname' DEADBEEF # for lightweight tags > git update-ref refs/tags/'tagname' DEADBEEF # for annotated tags Using "git tag 'tagname' DEADBEEF" should actually work in both cases. As that does nothing but creating the ref in the refs/tags/ namespace. Bjoern