]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/pack-objects.c
make pack data reuse compatible with both delta types
authorNicolas Pitre <nico@cam.org>
Sat, 23 Sep 2006 01:25:04 +0000 (21:25 -0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 27 Sep 2006 07:12:00 +0000 (00:12 -0700)
commit780e6e735be189097dad4b223d8edeb18cce1928
tree834f1ae5995ed2590c2c8abf41a9652ee0567921
parentbe6b19145f64f62790049c06320c35011f7312a7
make pack data reuse compatible with both delta types

This is the missing part to git-pack-objects allowing it to reuse delta
data to/from any of the two delta types.  It can reuse delta from any
type, and it outputs base offsets when --allow-delta-base-offset is
provided and the base is also included in the pack.  Otherwise it
outputs base sha1 references just like it always did.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c
pack.h
sha1_file.c