From: Junio C Hamano Date: Wed, 16 Nov 2005 20:26:42 GMT Subject: Re: [PATCH] symref support for import scripts Message-ID: <7v8xvo730d.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20051116195737.GE27727@kiste.smurf.noris.de> Matthias Urlichs writes: > The only thing we want to do with HEAD, in order to accomplish that, > is to find the SHA1 it points to, before and after the import. > No use of git-symbolic-ref is necessary for that. True. 'git-rev-parse --verify HEAD^0' would be sufficient.