Skip to content

Protocol v2 patches

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14upload-pack: make client capability parsing code a separate functionupload-pack.c+23 -210 replies
2/14upload-pack.c: Refactor capability advertisingupload-pack.c+40 -192 replies
3/14upload-pack-2: Implement the version 2 of upload-pack.gitignore Makefile upload-pack-2.c +1 more+54 -15 replies
4/14connect: rewrite feature parsing to work on string_listbuiltin/receive-pack.c connect.c connect.h +1 more+58 -544 replies
5/14transport: add infrastructure to support a protocol version numberfetch-pack.h remote.c remote.h +3 more+32 -20 replies
6/14remote.h: add get_remote_capabilities, request_capabilitiesconnect.c remote.h+62 -04 replies
7/14fetch-pack: move capability selection out of do_fetch_packfetch-pack.c+17 -110 replies
8/14fetch-pack: factor out get_selected_capabilities_listfetch-pack.c+40 -111 reply
9/14fetch-pack: Add negotiate_capabilitiesfetch-pack.c fetch-pack.h+20 -00 replies
10/14do_fetch_pack: select capabilities for transport version 1 onlyfetch-pack.c+10 -10 replies
11/14builtin/fetch-pack: add argument for transport versionbuiltin/fetch-pack.c+19 -10 replies
12/14Add test for fetch-packt/t5500-fetch-pack.sh+21 -01 reply
13/14WIP add test for git pullt/t5520-pull.sh+6 -00 replies
14/14WIP test git fetcht/t5510-fetch.sh+5 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [WIP PATCH 00/14] Protocol v2 patches

Hi David,

here are my patches for a protocol v2.

("Negotiate capabilities before doing anything else", or as code:

        static void upload_pack_version_2(void)
        {
                send_capabilities_version_2();
                receive_capabilities_version_2();

                /* The rest of the protocol stays the same, capabilities advertising
                   is disabled though. */
                advertise_capabilities = 0;
                upload_pack();
        }

)

They are rough and unfinished as you can see by the tailing WIPs. However the plumbing (upload-pack and fetch-pack) works and we'd need to integrate that into user porcelains, i.e. fetch, clone, push.

Also we need to add tests for all the options again, so we'd need to be smart about testing that.

I am not sure if it makes sense to integrate that with the http series, though.

Thanks,
Stefan

Nguyễn Thái Ngọc Duy (1):
upload-pack: make client capability parsing code a separate function

Stefan Beller (13):
upload-pack.c: Refactor capability advertising
upload-pack-2: Implement the version 2 of upload-pack
connect: rewrite feature parsing to work on string_list
transport: add infrastructure to support a protocol version number remote.h: add get_remote_capabilities, request_capabilities
fetch-pack: move capability selection out of do_fetch_pack
fetch-pack: factor out get_selected_capabilities_list
fetch-pack: Add negotiate_capabilities
do_fetch_pack: select capabilities for transport version 1 only builtin/fetch-pack: add argument for transport version Add test for fetch-pack
WIP add test for git pull
WIP test git fetch

 .gitignore             |   1 +
 Makefile               |   4 ++
 builtin/fetch-pack.c   |  20 ++++++-
 builtin/receive-pack.c |  15 +++--
 connect.c              | 141 +++++++++++++++++++++++++++++--------------
 connect.h              |   2 +-
 fetch-pack.c           | 102 ++++++++++++++++++++++++-------
 fetch-pack.h           |   7 +++
 remote.c               |   2 +
 remote.h               |   5 ++
 t/t5500-fetch-pack.sh  |  21 +++++++
 t/t5510-fetch.sh       |   5 ++
 t/t5520-pull.sh        |   6 ++
 transport-helper.c     |   1 +
 transport.c            |  20 ++++++-
 transport.h            |   8 +++
 upload-pack-2.c        |   1 +
 upload-pack.c          | 159 ++++++++++++++++++++++++++++++++++++-------------
 18 files changed, 403 insertions(+), 117 deletions(-)
 create mode 120000 upload-pack-2.c
Signature · 1 line
2.8.0.32.g71f8beb.dirty