From: Nicolas Pitre Date: Fri, 29 Aug 2008 20:07:58 +0000 (-0400) Subject: pack-objects: improve returned information from write_one() X-Git-Tag: v1.6.0.2~13^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6ed7f25e95069a900b10f838b15639af3fac05d3?hp=6ed7f25e95069a900b10f838b15639af3fac05d3 pack-objects: improve returned information from write_one() This function returns 0 when the current object couldn't be written due to the pack size limit, otherwise the current offset in the pack. There is a problem with this approach however, since current object could be a delta and its delta base might just have been written in the same write_one() call, but those successfully written objects are not accounted in the offset variable tracked by the caller. Currently this is not an issue but a subsequent patch will need this. Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano ---