From: Jeff Hostetler <jeffhost@xxxxxxxxxxxxx> This is part 2 of a proposed 3 part sequence for partial clone. Part 2 assumes part 1 [1] is in place. Part 2 is concerned with fsck, gc, initial support for dynamic object fetching, and tracking promisor objects. Jonathan Tan originally developed this code. I have moved it on top of [1]. [1] https://public-inbox.org/git/20171102124445.fbffd43521cd35f6a71e1851@xxxxxxxxxx/T/ [2] https://public-inbox.org/git/cover.1506714999.git.jonathantanmy@xxxxxxxxxx/ Jeff Hostetler (1): extension.partialclone: introduce partial clone extension Jonathan Tan (8): fsck: introduce partialclone extension fsck: support refs pointing to promisor objects fsck: support referenced promisor objects fsck: support promisor objects as CLI argument index-pack: refactor writing of .keep files introduce fetch-object: fetch one promisor object sha1_file: support lazily fetching missing objects gc: do not repack promisor packfiles Documentation/git-pack-objects.txt | 4 + Documentation/gitremote-helpers.txt | 2 + Documentation/technical/repository-version.txt | 22 ++ Makefile | 2 + builtin/cat-file.c | 3 + builtin/fetch-pack.c | 10 + builtin/fsck.c | 26 +- builtin/gc.c | 4 + builtin/index-pack.c | 113 ++++---- builtin/pack-objects.c | 14 + builtin/prune.c | 7 + builtin/repack.c | 12 +- builtin/rev-list.c | 35 ++- cache.h | 15 +- config.h | 3 + environment.c | 2 + fetch-object.c | 26 ++ fetch-object.h | 6 + fetch-pack.c | 8 +- fetch-pack.h | 2 + list-objects.c | 8 +- object.c | 2 +- packfile.c | 78 +++++- packfile.h | 13 + partial-clone-utils.c | 78 ++++++ partial-clone-utils.h | 34 +++ remote-curl.c | 17 +- revision.c | 32 ++- revision.h | 5 +- setup.c | 12 + sha1_file.c | 39 ++- t/t0410-partial-clone.sh | 343 +++++++++++++++++++++++++ transport.c | 8 + transport.h | 8 + 34 files changed, 917 insertions(+), 76 deletions(-) create mode 100644 fetch-object.c create mode 100644 fetch-object.h create mode 100644 partial-clone-utils.c create mode 100644 partial-clone-utils.h create mode 100755 t/t0410-partial-clone.sh -- 2.9.3