Commit Diff


commit - cfd56069b20eb932774b229cb6e2aac80a3c3acd
commit + b2155b85a74362df960f36d6e1cadcdb62ce8fe9
blob - ca45026cc97b8e4d57488732f016db3ca87aaf80
blob + 00d1c1ef86ac25d4a6e1108d7eb9ce0c0bdafb04
--- lib/got_lib_pack_create.h
+++ lib/got_lib_pack_create.h
@@ -34,7 +34,7 @@ got_pack_cache_pack_for_packidx(struct got_pack **pack
 
 const struct got_error *
 got_pack_find_pack_for_commit_painting(struct got_packidx **best_packidx,
-    struct got_object_id_queue *ids, int nids, struct got_repository *repo);
+    struct got_object_id_queue *ids, struct got_repository *repo);
 const struct got_error *got_pack_find_pack_for_reuse(
     struct got_packidx **best_packidx, struct got_repository *repo);
 
blob - 3bd5a64f277590883cfa6d747219b4c5509e10fd
blob + 426eb0fa2507914f0a3f09f194ef915d6bd120d3
--- lib/pack_create.c
+++ lib/pack_create.c
@@ -1200,7 +1200,7 @@ done:
 
 const struct got_error *
 got_pack_find_pack_for_commit_painting(struct got_packidx **best_packidx,
-    struct got_object_id_queue *ids, int nids, struct got_repository *repo)
+    struct got_object_id_queue *ids, struct got_repository *repo)
 {
 	const struct got_error *err = NULL;
 	struct got_pathlist_entry *pe;
blob - b8011c9c9311767fc79faf56bc73ca31e59ebf37
blob + b26c67f13f426b203a2f060f74c7ef9b186714a9
--- lib/pack_create_io.c
+++ lib/pack_create_io.c
@@ -359,7 +359,7 @@ got_pack_paint_commits(int *ncolored, struct got_objec
 			 */
 			if (packidx == NULL) {
 				err = got_pack_find_pack_for_commit_painting(
-				    &packidx, ids, nqueued, repo);
+				    &packidx, ids, repo);
 				if (err)
 					goto done;
 			}
blob - 125094a66ca9619f4a47f81298af57e17ddb756b
blob + 57e82b2411a07a632531e6c7dca37fa004cf9fdc
--- lib/pack_create_privsep.c
+++ lib/pack_create_privsep.c
@@ -400,8 +400,7 @@ pin_pack_for_commit_painting(struct got_pack **pack,
 {
 	const struct got_error *err;
 
-	err = got_pack_find_pack_for_commit_painting(packidx, ids, nqueued,
-	    repo);
+	err = got_pack_find_pack_for_commit_painting(packidx, ids, repo);
 	if (err || *packidx == NULL) {
 		*pack = NULL;
 		return err;