Skip to content

http*: refactor (v4)

Tay Ray Chuan git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17http-push, http-walker: style fixeshttp-push.c http-walker.c+79 -520 replies
2/17http-walker: verify remote packshttp-walker.c+30 -30 replies
3/17http*: copy string returned by sha1_to_hexhttp-push.c http-walker.c+47 -410 replies
4/17http-push: do not SEGV after fetching a bad pack idx filehttp-push.c+2 -00 replies
5/17Don't expect verify_pack() callers to set pack_sizepack-check.c+5 -30 replies
6/17transport.c::get_refs_via_curl(): do not leak refs_urltransport.c+1 -00 replies
7/17http*: move common variables and macros to http.[ch]http-push.c http-walker.c http.c +1 more+20 -200 replies
8/17http: create function end_url_with_slashhttp.c+9 -30 replies
9/17http.c: new functions for the http APIhttp.c http.h+133 -00 replies
10/17transport.c::get_refs_via_curl(): use the new http APItransport.c+10 -220 replies
11/17http.c::http_fetch_ref(): use the new http APIhttp.c+8 -250 replies
12/17http-push.c::remote_exists(): use the new http APIhttp-push.c+12 -190 replies
13/17http-push.c::fetch_symref(): use the new http APIhttp-push.c+3 -170 replies
14/17http*: add http_get_info_packshttp-push.c http-walker.c http.c +1 more+178 -3432 replies
15/17http: use new http API in fetch_index()http.c+8 -720 replies
16/17http*: add helper methods for fetching packshttp-push.c http-walker.c http.c +1 more+165 -1450 replies
17/17http*: 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/17] http*: refactor (v4)

Junio: this replaces rc/http-push~10 in pu. I've included your suggestions and changes.

Mike: I've only taken some of your patches from your WIP patch series dated Jan 18 (http://kerneltrap.org/mailarchive/git/2009/1/18/4757804).

Here's a list of changes from Mike's patches:

- the contentious http_cleanup has been removed in patch #6 (cleanup).

- a new http_request return state, HTTP_START_FAILED, has been added.

- http_request prints an error message ("Unable to start request") when start_active_slot fails.

- a new http API method, http_error, has been added.

- in patch #11 (http_fetch_ref), the error ("Unable to start request") is still removed, like Mike did, since http_request already handles it.

- in patch #12 (remote_exists), the patch has been re-titled from update_remote_info_refs.

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 (10):
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   |  536 ++++++---------------------------------------------
 http-walker.c |  530 ++++++++------------------------------------------
 http.c        |  598 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 http.h        |   85 ++++++++
 pack-check.c  |    8 +-
 transport.c   |   33 +--
 6 files changed, 820 insertions(+), 970 deletions(-)
Signature · 2 lines
Cheers,
Ray Chuan