fetch: inherit filter-spec from partial clone

Teach (partial) fetch to inherit the filter-spec used by
the partial clone.  Extend --no-filter to override this
inheritance.

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:50 +00:00
committed by Junio C Hamano
parent 35a7ae952f
commit aa57b871da
6 changed files with 89 additions and 7 deletions

View File

@ -158,7 +158,7 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
continue;
}
if (!strcmp(arg, ("--no-" CL_ARG__FILTER))) {
list_objects_filter_release(&args.filter_options);
list_objects_filter_set_no_filter(&args.filter_options);
continue;
}
usage(fetch_pack_usage);