From bc2d0c3396fad7b7064c6e9599e6321742538aa0 Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Fri, 8 Dec 2017 15:58:41 +0000 Subject: fetch-pack: add --no-filter Fixup fetch-pack to accept --no-filter to be consistent with rev-list and pack-objects. Signed-off-by: Jeff Hostetler Signed-off-by: Junio C Hamano --- builtin/fetch-pack.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'builtin/fetch-pack.c') diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c index 795780763a..cbf503537a 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) -- cgit v1.2.1