From: Tay Ray Chuan Date: Sat, 6 Jun 2009 08:43:59 +0000 (+0800) Subject: http*: add http_get_info_packs X-Git-Tag: v1.6.4-rc0~60^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b8caac2b8ab6482e7ab59c8ec18f1c3d90e7387d?hp=b8caac2b8ab6482e7ab59c8ec18f1c3d90e7387d http*: add http_get_info_packs http-push.c and http-walker.c no longer have to use fetch_index or setup_index; they simply need to use http_get_info_packs, a new http method, in their fetch_indices implementations. Move fetch_index() and rename to fetch_pack_index() in http.c; this method is not meant to be used outside of http.c. It invokes end_url_with_slash with base_url; apart from that change, the code is identical. Move setup_index() and rename to fetch_and_setup_pack_index() in http.c; this method is not meant to be used outside of http.c. Do not immediately set ret to 0 in http-walker.c::fetch_indices(); instead do it in the HTTP_MISSING_TARGET case, to make it clear that the HTTP_OK and HTTP_MISSING_TARGET cases both return 0. Signed-off-by: Tay Ray Chuan Signed-off-by: Junio C Hamano ---