summaryrefslogtreecommitdiff
path: root/builtin/fetch-pack.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2017-12-08 15:58:41 +0000
committerJunio C Hamano <gitster@pobox.com>2017-12-08 09:58:51 -0800
commitbc2d0c3396fad7b7064c6e9599e6321742538aa0 (patch)
tree3992d072b7d4bf50d2347508c796ded67d1c9020 /builtin/fetch-pack.c
parent640d8b72feaae0b96d5faa663ad624963e416d54 (diff)
downloadgit-bc2d0c3396fad7b7064c6e9599e6321742538aa0.tar.gz
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>
Diffstat (limited to 'builtin/fetch-pack.c')
-rw-r--r--builtin/fetch-pack.c4
1 files changed, 4 insertions, 0 deletions
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)