]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
let the GIT native protocol use offsets to delta base when possible
authorNicolas Pitre <nico@cam.org>
Tue, 26 Sep 2006 15:27:39 +0000 (11:27 -0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 27 Sep 2006 07:12:00 +0000 (00:12 -0700)
commite4fe4b8ef7cdde842a9e5e2594d0fba1367d9dd3
tree4a5d5a74da17b42637095fa451f3d11c739fe665
parent780e6e735be189097dad4b223d8edeb18cce1928
let the GIT native protocol use offsets to delta base when possible

There is no reason not to always do this when both ends agree.
Therefore a client that can accept offsets to delta base always sends
the "ofs-delta" flag.  The server will stream a pack with or without
offset to delta base depending on whether that flag is provided or not
with no additional cost.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch-pack.c
upload-pack.c