pack-objects: improve returned information from write_one()
commit6ed7f25e95069a900b10f838b15639af3fac05d3
authorNicolas Pitre <nico@cam.org>
Fri, 29 Aug 2008 20:07:58 +0000 (29 16:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 30 Aug 2008 04:51:27 +0000 (29 21:51 -0700)
tree2bacf7f2feae60bb110154dbe3cc83fc26f280a0
parent53d1589ff6bd336e3ece39e0a963a3d2a537cf96
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 <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c