Re: [PATCH v3 6/9] Use remote_odb_get_direct() and has_remote_odb()

2018-07-22 Thread Duy Nguyen
On Fri, Jul 13, 2018 at 7:50 PM Christian Couder wrote: > @@ -477,8 +478,8 @@ static int batch_objects(struct batch_options *opt) > > for_each_loose_object(batch_loose_object, , 0); > for_each_packed_object(batch_packed_object, , 0); > - if

[PATCH v3 6/9] Use remote_odb_get_direct() and has_remote_odb()

2018-07-13 Thread Christian Couder
From: Christian Couder Instead of using the repository_format_partial_clone global and fetch_object() directly, let's use has_remote_odb() and remote_odb_get_direct(). Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- builtin/cat-file.c| 5 +++-- builtin/fetch.c