Skip to content

Test fetch-pack's ability to fetch arbitrary blobs

Jonathan Tan git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3revision: unify {tree,blob}_objects in rev_infobisect.c builtin/rev-list.c list-objects.c +5 more+16 -244 replies
2/3revision: exclude trees/blobs given commitrevision.c t/t6000-rev-list-misc.sh+90 -09 replies
3/3upload-pack: compute blob reachability correctlyt/t5500-fetch-pack.sh upload-pack.c+45 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Test fetch-pack's ability to fetch arbitrary blobs

As stated in a previous e-mail [1], I was trying to think a way to allow Git to fetch arbitrary blobs from another Git server, and it turned out that fetch-pack already can. However, there were some bugs with blob reachability. This patch set fixes those bugs, and verifies (with tests) that fetch-pack can fetch reachable blobs and cannot fetch unreachable blobs.

These patches are (I think) worthwhile on their own, but may be of special interest to people who need Git to tolerate missing objects in the local repo (for example, the e-mail discussion "[RFC] Add support for downloading blobs on demand" [2]) because a way for Git to download missing objects natively is (I think) a prerequisite to that.

[1] <[email protected]>
[2] <[email protected]>

Jonathan Tan (3):
revision: unify {tree,blob}_objects in rev_info
revision: exclude trees/blobs given commit
upload-pack: compute blob reachability correctly

 bisect.c                 |  2 +-
 builtin/rev-list.c       |  6 ++--
 list-objects.c           |  4 +--
 pack-bitmap-write.c      |  3 +-
 pack-bitmap.c            |  3 +-
 reachable.c              |  3 +-
 revision.c               | 18 +++++-----
 revision.h               |  3 +-
 t/t5500-fetch-pack.sh    | 30 +++++++++++++++++
 t/t6000-rev-list-misc.sh | 88 ++++++++++++++++++++++++++++++++++++++++++++++++
 upload-pack.c            | 15 +++++++++
 11 files changed, 151 insertions(+), 24 deletions(-)
Signature · 1 line
2.11.0.483.g087da7b7c-goog