Sergey Vlasov <vsu@xxxxxxxxxxx> writes: > However, a straight reuse still will not be possible, because > sha1write_compressed() uses deflateInit(&stream, Z_DEFAULT_COMPRESSION), > which writes zlib headers around the deflate stream, and the zlib footer > contains adler32 checksum. So, as a minimum, you will need to > decompress the object data, calculate its adler32 checksum and write the > zlib header yourself. Hmph. Thanks for helping, but it sounds like my original plan was not useful at all. Probably inflating would be still cheaper than inflating and then deflating, but it would not be as cool as a straight copy. Sigh... - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html