Commit Diff


commit - 5bdf77473e318055df46b3a615e1db9a4ba27f32c9744426b5a1cdb69f740030
commit + 2fd60f4be89645d0aceadfad156b4ea7575fe53169a6c5b967e74264d7b656e6
blob - f234568271cfa6f35764ec3480436777093f9cb41e77a94d9f9944cee53d22e5
blob + 39f98d11fa02f0aeca9a4615bb537e46410de5e42ef802c16e7414baf40ad395
--- 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 - bb111f40027808632d73b913559eb3eac81d7c4770e4ea815556ab5bbbfb6bbc
blob + 00fe12c5545df628c9c0552431915235dcbd301ff60e08270762648864bb6eff
--- 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 - 78da71aec4c0379472d2873f6b84a8601beaf665bd61de8dacd677aa297b51cc
blob + fa9a283632a8bfc22f29039a018494f33a115be254a554e4b78a69c0da6369cb
--- 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 - 32ffb3dd3918573f19755aa809112157473faa28b1ea82a838c72fdbed2b77ec
blob + 4cbddac5110a390f195493830baa302e8e6834e787523f3d55f427d008277fc4
--- 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;