From: Jeff Hostetler Date: Fri, 8 Dec 2017 15:58:41 +0000 (+0000) Subject: fetch-pack: add --no-filter X-Git-Tag: v2.17.0-rc0~132^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/bc2d0c3396fad7b7064c6e9599e6321742538aa0?ds=inline 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 --- 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)