diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2017-12-08 15:58:41 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-08 09:58:51 -0800 |
commit | bc2d0c3396fad7b7064c6e9599e6321742538aa0 (patch) | |
tree | 3992d072b7d4bf50d2347508c796ded67d1c9020 /builtin/fetch-pack.c | |
parent | 640d8b72feaae0b96d5faa663ad624963e416d54 (diff) | |
download | git-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.c | 4 |
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) |