X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=list-objects-filter-options.c;h=e8da2e8581b2df956411f19e796ceb94adcef903;hb=7ce32f72e3eb0d82ead82d748f10cbd0d0c4066c;hp=d259bdb2c1490bf8fe3b36e61a9a982b63ab4f3c;hpb=cc0b05a4cc54c30a5355a9da5d76b1879d960628;p=thirdparty%2Fgit.git diff --git a/list-objects-filter-options.c b/list-objects-filter-options.c index d259bdb2c1..e8da2e8581 100644 --- a/list-objects-filter-options.c +++ b/list-objects-filter-options.c @@ -49,6 +49,19 @@ static int gently_parse_list_objects_filter( return 0; } + } else if (skip_prefix(arg, "tree:", &v0)) { + unsigned long depth; + if (!git_parse_ulong(v0, &depth) || depth != 0) { + if (errbuf) { + strbuf_addstr( + errbuf, + _("only 'tree:0' is supported")); + } + return 1; + } + filter_options->choice = LOFC_TREE_NONE; + return 0; + } else if (skip_prefix(arg, "sparse:oid=", &v0)) { struct object_context oc; struct object_id sparse_oid;