mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
fetch: add --refetch option
Teach fetch and transports the --refetch option to force a full fetch without negotiating common commits with the remote. Use when applying a new partial clone filter to refetch all matching objects. 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
869a0eb4eb
commit
3c7bab06e1
@@ -715,6 +715,9 @@ static int fetch_refs(struct transport *transport,
|
||||
if (data->transport_options.update_shallow)
|
||||
set_helper_option(transport, "update-shallow", "true");
|
||||
|
||||
if (data->transport_options.refetch)
|
||||
set_helper_option(transport, "refetch", "true");
|
||||
|
||||
if (data->transport_options.filter_options.choice) {
|
||||
const char *spec = expand_list_objects_filter_spec(
|
||||
&data->transport_options.filter_options);
|
||||
|
||||
Reference in New Issue
Block a user