From: Sam Vilain Date: Wed, 27 Jun 2007 22:45:52 GMT Subject: Re: post-update script to update wc - version 2 Message-ID: <4682E8A0.8050205@vilain.net> In-Reply-To: <81b0412b0706270221y40bac0a7gf6b73eda9f1e4bb0@mail.gmail.com> Alex Riesen wrote: > 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}? Ah, I missed that on the git-rev-parse man page. Much better! Sam.