Skip to content

Commit 57f6742

Browse files
committed
midx: honor the MIDX_PROGRESS flag in midx_repack
Update midx_repack to only display progress when the MIDX_PROGRESS flag is set. Signed-off-by: William Baker <[email protected]>
1 parent 29d0377 commit 57f6742

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

midx.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,12 @@ int midx_repack(struct repository *r, const char *object_dir, size_t batch_size,
13741374
strbuf_addstr(&base_name, object_dir);
13751375
strbuf_addstr(&base_name, "/pack/pack");
13761376
argv_array_push(&cmd.args, base_name.buf);
1377+
1378+
if (flags & MIDX_PROGRESS)
1379+
argv_array_push(&cmd.args, "--progress");
1380+
else
1381+
argv_array_push(&cmd.args, "-q");
1382+
13771383
strbuf_release(&base_name);
13781384

13791385
cmd.git_cmd = 1;

0 commit comments

Comments
 (0)