diff options
author | René Scharfe <l.s.r@web.de> | 2022-11-12 11:44:50 +0100 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-11-12 23:58:15 -0500 |
commit | 4182e921cbb12f98aee73393c98b754417e4d91c (patch) | |
tree | 3dcfd119da9b6555293ed67a3d85ebe124407e88 /notes-utils.c | |
parent | 90ba69e962da41e562bad8867f5e122aa793a3cc (diff) | |
download | git-4182e921cbb12f98aee73393c98b754417e4d91c.tar.gz |
pack-object: simplify --filter handling
pack-objects uses OPT_PARSE_LIST_OBJECTS_FILTER_INIT() to initialize the
a rev_info struct lazily before populating its filter member using the
--filter option values. It tracks whether the initialization is needed
using the .have_revs member of the callback data.
There is a better way: Use a stand-alone list_objects_filter_options
struct and build a rev_info struct with its .filter member after option
parsing. This allows using the simpler OPT_PARSE_LIST_OBJECTS_FILTER()
and getting rid of the extra callback mechanism.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'notes-utils.c')
0 files changed, 0 insertions, 0 deletions