diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-04-03 15:03:05 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-04-03 15:03:05 -0700 |
| commit | 1e2574e5854e989f17d44f505f73278455b28eeb (patch) | |
| tree | 6d119a7ce6b96849436fda023e5980d2ce8c6a24 /list-objects-filter-options.c | |
| parent | The 14th batch (diff) | |
| parent | pack-objects: lazily set up "struct rev_info", don't leak (diff) | |
| download | git-1e2574e5854e989f17d44f505f73278455b28eeb.tar.gz git-1e2574e5854e989f17d44f505f73278455b28eeb.zip | |
Merge branch 'ds/partial-bundle-more' into ab/plug-leak-in-revisions
* ds/partial-bundle-more:
pack-objects: lazily set up "struct rev_info", don't leak
bundle: output hash information in 'verify'
bundle: move capabilities to end of 'verify'
pack-objects: parse --filter directly into revs.filter
pack-objects: move revs out of get_object_list()
list-objects-filter: remove CL_ARG__FILTER
Diffstat (limited to 'list-objects-filter-options.c')
| -rw-r--r-- | list-objects-filter-options.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/list-objects-filter-options.c b/list-objects-filter-options.c index f02d8df142..4b25287886 100644 --- a/list-objects-filter-options.c +++ b/list-objects-filter-options.c @@ -285,6 +285,10 @@ int opt_parse_list_objects_filter(const struct option *opt, const char *arg, int unset) { struct list_objects_filter_options *filter_options = opt->value; + opt_lof_init init = (opt_lof_init)opt->defval; + + if (init) + filter_options = init(opt->value); if (unset || !arg) list_objects_filter_set_no_filter(filter_options); |
