]> git.ipfire.org Git - thirdparty/git.git/commit
clone: add --bundle-uri option
authorDerrick Stolee <derrickstolee@github.com>
Tue, 9 Aug 2022 13:11:41 +0000 (13:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Aug 2022 21:07:37 +0000 (14:07 -0700)
commit55568919616429fbc209880cf189a3adaceb6093
treead443684968b415f4be585093bbc320e98671c5e
parent53a50892be20a91fb0dcf572a641ce2a79af1a38
clone: add --bundle-uri option

Cloning a remote repository is one of the most expensive operations in
Git. The server can spend a lot of CPU time generating a pack-file for
the client's request. The amount of data can clog the network for a long
time, and the Git protocol is not resumable. For users with poor network
connections or are located far away from the origin server, this can be
especially painful.

Add a new '--bundle-uri' option to 'git clone' to bootstrap a clone from
a bundle. If the user is aware of a bundle server, then they can tell
Git to bootstrap the new repository with these bundles before fetching
the remaining objects from the origin server.

Reviewed-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-clone.txt
builtin/clone.c
t/t5558-clone-bundle-uri.sh [new file with mode: 0755]