@@ -1149,23 +1149,14 @@ static void write_graph_chunk_bloom_indexes(struct hashfile *f,
1149
1149
struct commit * * list = ctx -> commits .list ;
1150
1150
struct commit * * last = ctx -> commits .list + ctx -> commits .nr ;
1151
1151
uint32_t cur_pos = 0 ;
1152
- struct progress * progress = NULL ;
1153
- int i = 0 ;
1154
-
1155
- if (ctx -> report_progress )
1156
- progress = start_delayed_progress (
1157
- _ ("Writing changed paths Bloom filters index" ),
1158
- ctx -> commits .nr );
1159
1152
1160
1153
while (list < last ) {
1161
1154
struct bloom_filter * filter = get_bloom_filter (ctx -> r , * list , 0 );
1162
1155
cur_pos += filter -> len ;
1163
- display_progress (progress , ++ i );
1156
+ display_progress (ctx -> progress , ++ ctx -> progress_cnt );
1164
1157
hashwrite_be32 (f , cur_pos );
1165
1158
list ++ ;
1166
1159
}
1167
-
1168
- stop_progress (& progress );
1169
1160
}
1170
1161
1171
1162
static void write_graph_chunk_bloom_data (struct hashfile * f ,
@@ -1174,26 +1165,17 @@ static void write_graph_chunk_bloom_data(struct hashfile *f,
1174
1165
{
1175
1166
struct commit * * list = ctx -> commits .list ;
1176
1167
struct commit * * last = ctx -> commits .list + ctx -> commits .nr ;
1177
- struct progress * progress = NULL ;
1178
- int i = 0 ;
1179
-
1180
- if (ctx -> report_progress )
1181
- progress = start_delayed_progress (
1182
- _ ("Writing changed paths Bloom filters data" ),
1183
- ctx -> commits .nr );
1184
1168
1185
1169
hashwrite_be32 (f , settings -> hash_version );
1186
1170
hashwrite_be32 (f , settings -> num_hashes );
1187
1171
hashwrite_be32 (f , settings -> bits_per_entry );
1188
1172
1189
1173
while (list < last ) {
1190
1174
struct bloom_filter * filter = get_bloom_filter (ctx -> r , * list , 0 );
1191
- display_progress (progress , ++ i );
1175
+ display_progress (ctx -> progress , ++ ctx -> progress_cnt );
1192
1176
hashwrite (f , filter -> data , filter -> len * sizeof (unsigned char ));
1193
1177
list ++ ;
1194
1178
}
1195
-
1196
- stop_progress (& progress );
1197
1179
}
1198
1180
1199
1181
static int oid_compare (const void * _a , const void * _b )
@@ -1423,12 +1405,13 @@ int write_commit_graph_reachable(struct object_directory *odb,
1423
1405
_ ("Collecting referenced commits" ), 0 );
1424
1406
1425
1407
for_each_ref (add_ref_to_set , & data );
1408
+
1409
+ stop_progress (& data .progress );
1410
+
1426
1411
result = write_commit_graph (odb , NULL , & commits ,
1427
1412
flags , split_opts );
1428
1413
1429
1414
oidset_clear (& commits );
1430
- if (data .progress )
1431
- stop_progress (& data .progress );
1432
1415
return result ;
1433
1416
}
1434
1417
0 commit comments