]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
upload-pack: share more code
authorJunio C Hamano <gitster@pobox.com>
Fri, 18 Jan 2013 23:48:49 +0000 (15:48 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Jan 2013 23:48:49 +0000 (15:48 -0800)
commitcbbe50db7691cd9d7d261ebc5c5ffec55f93127d
tree1c263a5ab19abf2def6fc70217d1a6600bfd92a7
parent02f55e660ccbd2fa1e3b2c686200f0037568f854
upload-pack: share more code

We mark the objects pointed at our refs with "OUR_REF" flag in two
functions (mark_our_ref() and send_ref()), but we can just use the
former as a helper for the latter.

Update the way mark_our_ref() prepares in-core object to use
lookup_unknown_object() to delay reading the actual object data,
just like we did in 435c833 (upload-pack: use peel_ref for ref
advertisements, 2012-10-04).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c