Skip to content

fetch with refspec

David Turner git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6http-backend: use argv_array functionshttp-backend.c+7 -52 replies
2/6remote-curl.c: fix variable shadowingremote-curl.c+9 -92 replies
3/6http-backend: handle refspec argumenthttp-backend.c upload-pack.c+88 -22 replies
4/6transport: add refspec list parameters to functionsbuiltin/clone.c builtin/fetch.c builtin/ls-remote.c +4 more+29 -2518 replies
5/6fetch: pass refspec to http serverDocumentation/technical/protocol-capabilities.txt builtin/fetch.c remote-curl.c +2 more+98 -22 replies
6/6clone: send refspec for single-branch clonesbuiltin/clone.c t/t5552-http-fetch-branch.sh transport-helper.c+31 -22 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH/RFC 0/6] fetch with refspec

We've got a lot of refs, but pretty frequently we only want to fetch one. It's silly for the server to send a bunch of refs that the client is just going to ignore. Here are some patches that fix that.

Let me know if this seems reasonable.

(and I'll start in on another round of index-helper as soon as this is sent!)

David Turner (6):
http-backend: use argv_array functions remote-curl.c: fix variable shadowing
http-backend: handle refspec argument
transport: add refspec list parameters to functions
fetch: pass refspec to http server
clone: send refspec for single-branch clones

 Documentation/technical/protocol-capabilities.txt | 23 +++++++
 builtin/clone.c                                   | 16 ++++-
 builtin/fetch.c                                   | 24 ++++++-
 builtin/ls-remote.c                               |  2 +-
 builtin/remote.c                                  |  2 +-
 http-backend.c                                    | 23 +++++--
 remote-curl.c                                     | 25 ++++---
 t/t5552-http-fetch-branch.sh                      | 47 +++++++++++++
 transport-helper.c                                | 44 ++++++++----
 transport.c                                       | 14 ++--
 transport.h                                       |  4 +-
 upload-pack.c                                     | 81 ++++++++++++++++++++++-
 12 files changed, 261 insertions(+), 44 deletions(-)
 create mode 100755 t/t5552-http-fetch-branch.sh
Signature · 1 line
2.4.2.767.g62658d5-twtrsrc