]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects.c
list-objects: consolidate traverse_commit_list[_filtered]
authorDerrick Stolee <derrickstolee@github.com>
Wed, 9 Mar 2022 16:01:36 +0000 (16:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 18:25:27 +0000 (10:25 -0800)
commit3e0370a8d2251742d583ce095072b7dcc34b3c01
tree4d5e7d29c452261687da3a1bcae66fb35fa2b338
parent09d4a79effac002399557392e21c9f8829056ca3
list-objects: consolidate traverse_commit_list[_filtered]

Now that all consumers of traverse_commit_list_filtered() populate the
'filter' member of 'struct rev_info', we can drop that parameter from
the method prototype to simplify things. In addition, the only thing
different now between traverse_commit_list_filtered() and
traverse_commit_list() is the presence of the 'omitted' parameter, which
is only non-NULL for one caller. We can consolidate these two methods by
having one call the other and use the simpler form everywhere the
'omitted' parameter would be NULL.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
builtin/rev-list.c
list-objects.c
list-objects.h
pack-bitmap.c