summaryrefslogtreecommitdiffstats
path: root/pseudo-merge.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-08-17 09:29:37 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-17 18:44:41 +0200
commit47564945046f8cda634ee72c5b3838c1b0aa4582 (patch)
tree02e776bf2bbd6896b0801c2f13337c29047909ae /pseudo-merge.c
parentpack-bitmap: load writer config from repository parameter (diff)
downloadgit-47564945046f8cda634ee72c5b3838c1b0aa4582.tar.xz
git-47564945046f8cda634ee72c5b3838c1b0aa4582.zip
pack-bitmap: drop unused parameters from select_pseudo_merges()
We take the array of indexed_commits (and its length), but there's no need. The selection is based on ref reachability, not the linearized set of commits we're packing. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pseudo-merge.c')
-rw-r--r--pseudo-merge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pseudo-merge.c b/pseudo-merge.c
index 1d7f5381a4..c952a7cba9 100644
--- a/pseudo-merge.c
+++ b/pseudo-merge.c
@@ -425,8 +425,7 @@ static void sort_pseudo_merge_matches(struct pseudo_merge_matches *matches)
QSORT(matches->unstable, matches->unstable_nr, commit_date_cmp);
}
-void select_pseudo_merges(struct bitmap_writer *writer,
- struct commit **commits, size_t commits_nr)
+void select_pseudo_merges(struct bitmap_writer *writer)
{
struct progress *progress = NULL;
uint32_t i;