Thread (31 messages) 31 messages, 4 authors, 2020-03-10
STALE2293d
Revisions (2)
  1. rfc current
  2. v2 [diff vs current]

[PATCH 1/6] index-pack: unify threaded and unthreaded code

From: Jonathan Tan <hidden>
Date: 2019-10-09 23:44:33
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Jonathan Tan <redacted>
---
 builtin/index-pack.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index a23454da6e..1a2600d4b3 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -1210,15 +1210,7 @@ static void resolve_deltas(void)
 		cleanup_thread();
 		return;
 	}
-
-	for (i = 0; i < nr_objects; i++) {
-		struct object_entry *obj = &objects[i];
-
-		if (is_delta_type(obj->type))
-			continue;
-		resolve_base(obj);
-		display_progress(progress, nr_resolved_deltas);
-	}
+	threaded_second_pass(&nothread_data);
 }
 
 /*
-- 
2.23.0.581.g78d2f28ef7-goog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help