Re: [PATCH] Stop inflating the whole SHA1 file only to check size.
- From
Nicolas Pitre <nico@cam.org>
- Date
- Jun 2, 2005, 00:51 UTC
- Message-ID
- <Pine.LNX.4.63.0506012048330.17354@localhost.localdomain>
- In-Reply-To
- <7vpsv5hbm5.fsf@assigned-by-dhcp.cox.net>
On Wed, 1 Jun 2005, Junio C Hamano wrote:
> Using the new unpack_sha1_file_partial() function, stop > inflating the whole SHA1 file when rename detector wants to know > only the filesize.
Beware. If you have delta objects you'll get the size of the delta itself and not the final object size, unless you recurse until a non delta object is found.
Nicolas