Skip to content

Hiding refs

Junio C Hamano git 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 45 repliesIn review
  2. v23 patches 2 repliesSuperseded
  3. v12 patches 13 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8upload-pack: share more codeupload-pack.c+14 -170 replies
2/8upload-pack: simplify request validationupload-pack.c+11 -170 replies
3/8upload/receive-pack: allow hiding ref hierarchiesDocumentation/config.txt builtin/receive-pack.c refs.c +4 more+125 -14 replies
4/8parse_fetch_refspec(): clarify the codeflow a bitremote.c+12 -170 replies
5/8fetch: use struct ref to represent refs to be fetchedbuiltin/fetch-pack.c cache.h fetch-pack.c +2 more+89 -530 replies
6/8upload-pack: optionally allow fetching from the tips of hidden refsDocumentation/config.txt upload-pack.c+26 -70 replies
7/8fetch: fetch objects by their exact SHA-1 object namesfetch-pack.c remote.c remote.h +1 more+67 -23 replies
8/8WIP: receive.allowupdatestohiddenDocumentation/config.txt builtin/receive-pack.c t/t5516-fetch-push.sh+38 -10 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/8] Hiding refs

The third round.

- Multi-valued variable transfer.hiderefs lists prefixes of ref hierarchies to be hidden from the requests coming over the network.

- A configuration optionally allows uploadpack to accept fetch requests for an object at the tip of a hidden ref.

Elsewhere, we discussed "delaying ref advertisement" (aka "expand refs"), but it is an orthogonal feature and this "hiding refs completely from advertisement" series does not attempt to address.

Patch #2 (simplify request validation), #4 (clarify the codeflow), and #5 (use struct ref) are new. The are all long overdue clean-ups for these codepaths.

The last patch is an illustration why it wouldn't make sense to optionally allow pushing into hidden refs, and not meant to be part of the series proper.

For those who missed it, earlier rounds are at:

    http://thread.gmane.org/gmane.comp.version-control.git/213951
    http://thread.gmane.org/gmane.comp.version-control.git/214888

Junio C Hamano (8):
upload-pack: share more code
upload-pack: simplify request validation upload/receive-pack: allow hiding ref hierarchies parse_fetch_refspec(): clarify the codeflow a bit
fetch: use struct ref to represent refs to be fetched
upload-pack: optionally allow fetching from the tips of hidden refs
fetch: fetch objects by their exact SHA-1 object names
WIP: receive.allowupdatestohidden

 Documentation/config.txt |  23 +++++++++++
 builtin/fetch-pack.c     |  40 +++++++++++++++----
 builtin/receive-pack.c   |  31 +++++++++++++++
 cache.h                  |   3 +-
 fetch-pack.c             | 101 ++++++++++++++++++++++++++++++++---------------
 fetch-pack.h             |  11 +++---
 refs.c                   |  41 +++++++++++++++++++
 refs.h                   |   3 ++
 remote.c                 |  41 ++++++++++---------
 remote.h                 |   1 +
 t/t5512-ls-remote.sh     |   9 +++++
 t/t5516-fetch-push.sh    |  82 ++++++++++++++++++++++++++++++++++++++
 transport.c              |   9 +----
 upload-pack.c            |  86 ++++++++++++++++++++++++----------------
 14 files changed, 374 insertions(+), 107 deletions(-)
Signature · 1 line
1.8.1.2.589.ga9b91ac