diff options
author | Robert Coup <robert@coup.net.nz> | 2022-03-28 16:02:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-28 19:25:52 +0200 |
commit | 4dfd0925cbba78cc737e3af29faa5774bbc7b6a3 (patch) | |
tree | 5c8734add2e33f648ce3b6fbdcfdf1575b3f64fc /fetch-pack.h | |
parent | fetch-negotiator: add specific noop initializer (diff) | |
download | git-4dfd0925cbba78cc737e3af29faa5774bbc7b6a3.tar.xz git-4dfd0925cbba78cc737e3af29faa5774bbc7b6a3.zip |
fetch-pack: add refetch
Allow a "refetch" where the contents of the local object store are
ignored and a full fetch is performed, not attempting to find or
negotiate common commits with the remote.
A key use case is to apply a new partial clone blob/tree filter and
refetch all the associated matching content, which would otherwise not
be transferred when the commit objects are already present locally.
Signed-off-by: Robert Coup <robert@coup.net.nz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | fetch-pack.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h index 7f94a2a583..8c7752fc82 100644 --- a/fetch-pack.h +++ b/fetch-pack.h @@ -42,6 +42,7 @@ struct fetch_pack_args { unsigned update_shallow:1; unsigned reject_shallow_remote:1; unsigned deepen:1; + unsigned refetch:1; /* * Indicate that the remote of this request is a promisor remote. The |