summaryrefslogtreecommitdiff
path: root/builtin/fetch-pack.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2017-12-08 15:58:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-08 17:58:51 (GMT)
commitbc2d0c3396fad7b7064c6e9599e6321742538aa0 (patch)
tree3992d072b7d4bf50d2347508c796ded67d1c9020 /builtin/fetch-pack.c
parent640d8b72feaae0b96d5faa663ad624963e416d54 (diff)
downloadgit-bc2d0c3396fad7b7064c6e9599e6321742538aa0.zip
git-bc2d0c3396fad7b7064c6e9599e6321742538aa0.tar.gz
git-bc2d0c3396fad7b7064c6e9599e6321742538aa0.tar.bz2
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 7957807..cbf5035 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)