pack-objects: simplify the condition associated with --all-progress
Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nicolas Pitre committed
May 2, 2008 at 15:11 UTC
bcd7954e217994fafabe5106e56829c8a2cb7e99
1 file changed
+1
-2
builtin-pack-objects.c
+1
-2
@@ -452,11 +452,10 @@ static void write_pack_file(void)
452
struct sha1file *f;
453
off_t offset, offset_one, last_obj_offset = 0;
454
struct pack_header hdr;
455
- int do_progress = progress >> pack_to_stdout;
455
uint32_t nr_remaining = nr_result;
456
time_t last_mtime = 0;
457
459
- if (do_progress)
458
+ if (progress > pack_to_stdout)
459
progress_state = start_progress("Writing objects", nr_result);
460
written_list = xmalloc(nr_objects * sizeof(*written_list));
461