From: Shawn O. Pearce Date: Tue, 24 Feb 2009 23:07:01 GMT Subject: Re: [RFC/PATCH] Add a new commit-raw command. Message-ID: <20090224230701.GW22848@spearce.org> In-Reply-To: <20090224221406.GA6299@coredump.intra.peff.net> Jeff King wrote: > On Tue, Feb 24, 2009 at 11:28:34PM +0200, Felipe Contreras wrote: > > > This command receives as input a raw commit object, and outputs the > > generated sha1. This is very useful when doing some serious repo > > reconstructions. > > > > For example: git cat-file -p 343ee25 | git write-raw > > 343ee2589d1b94772f513cc699765622351acb19 > > How about: > > git cat-file -p 343ee25 | git hash-object -t commit --stdin And if you are really writing a lot of new objects, use fast-import. -- Shawn.