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 <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff Hostetler committed Dec 8, 2017 at 15:58 UTC bc2d0c3396fad7b7064c6e9599e6321742538aa0
1 file changed +4
builtin/fetch-pack.c
+4
@@ -157,6 +157,10 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
157 parse_list_objects_filter(&args.filter_options, arg);
158 continue;
159 }
160 + if (!strcmp(arg, ("--no-" CL_ARG__FILTER))) {
161 + list_objects_filter_release(&args.filter_options);
162 + continue;
163 + }
164 usage(fetch_pack_usage);
165 }
166 if (deepen_not.nr)