diff options
| author | Robert Coup <robert@coup.net.nz> | 2022-03-28 14:02:07 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-03-28 10:25:52 -0700 |
| commit | 869a0eb4ebddad9ea758464526524ed06f5a13a9 (patch) | |
| tree | d8a51013b45312e0b4b2d26c1c8a5fbd1d1e4469 /builtin/fetch-pack.c | |
| parent | 4dfd0925cbba78cc737e3af29faa5774bbc7b6a3 (diff) | |
| download | git-869a0eb4ebddad9ea758464526524ed06f5a13a9.tar.gz | |
builtin/fetch-pack: add --refetch option
Add a refetch option to fetch-pack to force a full fetch. 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>
Diffstat (limited to 'builtin/fetch-pack.c')
| -rw-r--r-- | builtin/fetch-pack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c index c2d96f4c89..1f8aec97d4 100644 --- a/builtin/fetch-pack.c +++ b/builtin/fetch-pack.c @@ -153,6 +153,10 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix) args.from_promisor = 1; continue; } + if (!strcmp("--refetch", arg)) { + args.refetch = 1; + continue; + } if (skip_prefix(arg, ("--" CL_ARG__FILTER "="), &arg)) { parse_list_objects_filter(&args.filter_options, arg); continue; |
