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>
This commit is contained in:

committed by
Junio C Hamano

parent
1836836593
commit
4dfd0925cb
@ -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
|
||||
|
Reference in New Issue
Block a user