[PATCH v7 06/16] fetch-pack: add --no-filter
- From
- Jeff Hostetler <git@jeffhostetler.com>
- Date
- Dec 8, 2017, 15:58 UTC
- Message-ID
- <20171208155851.855-7-git@jeffhostetler.com>
- In-Reply-To
- <20171208155851.855-1-git@jeffhostetler.com>
From: Jeff Hostetler <jeffhost@microsoft.com>
Fixup fetch-pack to accept --no-filter to be consistent with rev-list and pack-objects.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> --- builtin/fetch-pack.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c index 7957807..cbf5035 100644 --- a/builtin/fetch-pack.c +++ b/builtin/fetch-pack.c @@ -157,6 +157,10 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix) parse_list_objects_filter(&args.filter_options, arg); continue; } + if (!strcmp(arg, ("--no-" CL_ARG__FILTER))) { + list_objects_filter_release(&args.filter_options); + continue; + } usage(fetch_pack_usage); } if (deepen_not.nr)
-- 2.9.3