From: Alex Riesen Date: Wed, 27 Jun 2007 12:43:46 GMT Subject: Re: post-update script to update wc - version 2 Message-ID: <81b0412b0706270543s7dd37e3ds1acfe671f647617@mail.gmail.com> In-Reply-To: <7vved9pv2h.fsf@assigned-by-dhcp.pobox.com> On 6/27/07, Junio C Hamano wrote: > "Alex Riesen" writes: > > On 6/27/07, Sam Vilain wrote: > >> Sam Vilain wrote: > >> > this_tree=`git-cat-file commit $commit | awk '/^tree/ { print $2; exit }'` > >> > >> Of course on newer git, `git-rev-parse $commit:` will do that. > > > > Are you sure? Maybe you mean git-rev-parse "$commit"^{tree}? > > I had the same "Huh?" moment as you had, but what Sam said is > correct. He is being too clever to confuse us ;-). > > When "$commit" is a tree-ish, > > $commit:$path > > is the name of the tree or blob object at that $path, and as > very strange special case, an empty $path is the whole tree. I didn't even see the colon. That's GMail, they obviously have no idea what font should be used for the mail of a technical user.