From: Nicolas Pitre Date: Fri, 15 Aug 2008 01:46:40 GMT Subject: Re: pack operation is thrashing my server Message-ID: In-Reply-To: <20080814223327.GV3782@spearce.org> On Thu, 14 Aug 2008, Shawn O. Pearce wrote: > Andreas Ericsson wrote: > > How does one go about getting the object sizes? rev-list appears > > to have no option for it. > > With great pain. You can use the output of verify-pack -v to > tell you the size of the inflated portion of the object, but for > a delta this is the inflated size of the delta, not of the fully > unpacked object. Delta objects have the size of the final object in their header. There is get_size_from_delta() extracting that information already. There is simply no interface exporting that info to external tools but that shouldn't be hard to add. Nicolas