X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=list-objects-filter-options.c;h=a15d0f782923f6bbb0aa9534c80f53c2942e7a79;hb=fb9d7431cf4c4d4d90ad2d2904c7feb19dfb2f8f;hp=c0036f73789d1a6a3ff88a76c3838241e65ca868;hpb=ed8a45168924ac3e5c42fd30ecc32daac6e67d1b;p=thirdparty%2Fgit.git diff --git a/list-objects-filter-options.c b/list-objects-filter-options.c index c0036f7378..a15d0f7829 100644 --- a/list-objects-filter-options.c +++ b/list-objects-filter-options.c @@ -78,9 +78,12 @@ static int gently_parse_list_objects_filter( return 0; } else if (skip_prefix(arg, "sparse:path=", &v0)) { - filter_options->choice = LOFC_SPARSE_PATH; - filter_options->sparse_path_value = strdup(v0); - return 0; + if (errbuf) { + strbuf_addstr( + errbuf, + _("sparse:path filters support has been dropped")); + } + return 1; } /* * Please update _git_fetch() in git-completion.bash when you @@ -136,7 +139,6 @@ void list_objects_filter_release( { free(filter_options->filter_spec); free(filter_options->sparse_oid_value); - free(filter_options->sparse_path_value); memset(filter_options, 0, sizeof(*filter_options)); }