diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-03-09 16:01:35 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-09 18:25:27 (GMT) |
commit | 09d4a79effac002399557392e21c9f8829056ca3 (patch) | |
tree | aa39b5848db8d98f12c3df1e4fc1859d3c52c6d4 /builtin/rev-list.c | |
parent | 7940941de1f23d02c60581cc90a193988e5e2fe0 (diff) | |
download | git-09d4a79effac002399557392e21c9f8829056ca3.zip git-09d4a79effac002399557392e21c9f8829056ca3.tar.gz git-09d4a79effac002399557392e21c9f8829056ca3.tar.bz2 |
pack-bitmap: drop filter in prepare_bitmap_walk()
Now that all consumers of prepare_bitmap_walk() have populated the
'filter' member of 'struct rev_info', we can drop that extra parameter
from the method and access it directly from the 'struct rev_info'.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-list.c')
-rw-r--r-- | builtin/rev-list.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index 1beb578..ab7558b 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -434,8 +434,7 @@ static int try_bitmap_count(struct rev_info *revs, */ max_count = revs->max_count; - bitmap_git = prepare_bitmap_walk(revs, &revs->filter, - filter_provided_objects); + bitmap_git = prepare_bitmap_walk(revs, filter_provided_objects); if (!bitmap_git) return -1; @@ -463,8 +462,7 @@ static int try_bitmap_traversal(struct rev_info *revs, if (revs->max_count >= 0) return -1; - bitmap_git = prepare_bitmap_walk(revs, &revs->filter, - filter_provided_objects); + bitmap_git = prepare_bitmap_walk(revs, filter_provided_objects); if (!bitmap_git) return -1; @@ -481,7 +479,7 @@ static int try_bitmap_disk_usage(struct rev_info *revs, if (!show_disk_usage) return -1; - bitmap_git = prepare_bitmap_walk(revs, &revs->filter, filter_provided_objects); + bitmap_git = prepare_bitmap_walk(revs, filter_provided_objects); if (!bitmap_git) return -1; |