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>
This commit is contained in:
Jeff Hostetler 2017-12-08 15:58:41 +00:00 committed by Junio C Hamano
parent 640d8b72fe
commit bc2d0c3396

View File

@ -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)