Skip to content

http*: refactor (v5)

Tay Ray Chuan git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 25 repliesIn review

Changes from the previous patch series from the cover letter

- add a list of functions added (patch #15)

- use back the die()'s like in the original (patch #16)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23t5540-http-push: test fetching of loose objectst/t5540-http-push.sh+16 -00 replies
2/23t5540-http-push: test fetching of packed objectst/t5540-http-push.sh+20 -00 replies
3/23http*: cleanup slot->local after fclosehttp-push.c http-walker.c+12 -02 replies
4/23http-push: send out fetch requests on queuehttp-push.c t/t5540-http-push.sh+28 -132 replies
5/23http-push: fix missing "#ifdef USE_CURL_MULTI" around "is_running_queue"http-push.c+2 -00 replies
6/23t5550-http-fetch: test fetching of packed objectst/t5550-http-fetch.sh+8 -00 replies
7/23http-push, http-walker: style fixeshttp-push.c http-walker.c+79 -520 replies
8/23http-walker: verify remote packshttp-walker.c+30 -30 replies
9/23http*: copy string returned by sha1_to_hexhttp-push.c http-walker.c+47 -450 replies
10/23http-push: do not SEGV after fetching a bad pack idx filehttp-push.c+2 -00 replies
11/23Don't expect verify_pack() callers to set pack_sizepack-check.c+5 -30 replies
12/23transport.c::get_refs_via_curl(): do not leak refs_urltransport.c+1 -02 replies
13/23http*: move common variables and macros to http.[ch]http-push.c http-walker.c http.c +1 more+20 -200 replies
14/23http: create function end_url_with_slashhttp.c+9 -30 replies
15/23http.c: new functions for the http APIhttp.c http.h+134 -03 replies
16/23transport.c::get_refs_via_curl(): use the new http APItransport.c+10 -220 replies
17/23http.c::http_fetch_ref(): use the new http APIhttp.c+8 -253 replies
18/23http-push.c::remote_exists(): use the new http APIhttp-push.c+12 -192 replies
19/23http-push.c::fetch_symref(): use the new http APIhttp-push.c+3 -174 replies
20/23http*: add http_get_info_packshttp-push.c http-walker.c http.c +1 more+186 -3450 replies
21/23http: use new http API in fetch_index()http.c+8 -730 replies
22/23http*: add helper methods for fetching packshttp-push.c http-walker.c http.c +1 more+167 -1510 replies
23/23http*: add helper methods for fetching objects (loose)http-push.c http-walker.c http.c +1 more+336 -4310 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/23] http*: refactor (v6)

Junio, this replaces the entire 'rc/http-push' topic.

Changes from the previous patch series:

- add a list of functions added (patch #15)

- use back the die()'s like in the original (patch #16)

Christian Couder (1):
http-push: fix missing "#ifdef USE_CURL_MULTI" around
"is_running_queue"

Mike Hommey (7):
Don't expect verify_pack() callers to set pack_size transport.c::get_refs_via_curl(): do not leak refs_url http.c: new functions for the http API transport.c::get_refs_via_curl(): use the new http API http.c::http_fetch_ref(): use the new http API http-push.c::remote_exists(): use the new http API http-push.c::fetch_symref(): use the new http API

Tay Ray Chuan (15):
t5540-http-push: test fetching of loose objects
t5540-http-push: test fetching of packed objects http*: cleanup slot->local after fclose
http-push: send out fetch requests on queue
t5550-http-fetch: test fetching of packed objects http-push, http-walker: style fixes
http-walker: verify remote packs
http*: copy string returned by sha1_to_hex
http-push: do not SEGV after fetching a bad pack idx file http*: move common variables and macros to http.[ch]
http: create function end_url_with_slash
http*: add http_get_info_packs
http: use new http API in fetch_index()
http*: add helper methods for fetching packs http*: add helper methods for fetching objects (loose)

 http-push.c           |  579 ++++++++---------------------------------------
 http-walker.c         |  533 +++++++------------------------------------
 http.c                |  601 +++++++++++++++++++++++++++++++++++++++++++++++--
 http.h                |   85 +++++++
 pack-check.c          |    8 +-
 t/t5540-http-push.sh  |   36 +++
 t/t5550-http-fetch.sh |    8 +
 transport.c           |   36 ++--
 8 files changed, 905 insertions(+), 981 deletions(-)