Skip to content

Commit d6ae4e1

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 3468acf commit d6ae4e1

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
@@ -1373,6 +1373,12 @@ int midx_repack(struct repository *r, const char *object_dir, size_t batch_size,
13731373
strbuf_addstr(&base_name, object_dir);
13741374
strbuf_addstr(&base_name, "/pack/pack");
13751375
argv_array_push(&cmd.args, base_name.buf);
1376+
1377+
if (flags & MIDX_PROGRESS)
1378+
argv_array_push(&cmd.args, "--progress");
1379+
else
1380+
argv_array_push(&cmd.args, "-q");
1381+
13761382
strbuf_release(&base_name);
13771383

13781384
cmd.git_cmd = 1;

0 commit comments

Comments
 (0)