diff options
author | Robert Coup <robert@coup.net.nz> | 2022-03-28 14:02:06 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-28 17:25:52 (GMT) |
commit | 4dfd0925cbba78cc737e3af29faa5774bbc7b6a3 (patch) | |
tree | 5c8734add2e33f648ce3b6fbdcfdf1575b3f64fc /fetch-pack.h | |
parent | 1836836593e90b515269b564b384dcf091a4493d (diff) | |
download | git-4dfd0925cbba78cc737e3af29faa5774bbc7b6a3.zip git-4dfd0925cbba78cc737e3af29faa5774bbc7b6a3.tar.gz git-4dfd0925cbba78cc737e3af29faa5774bbc7b6a3.tar.bz2 |
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 'fetch-pack.h')
-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 7f94a2a..8c7752f 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 |