MCPcopy Create free account
hub / github.com/git/git / repack_prepare_midx_command

Function repack_prepare_midx_command

repack-midx.c:282–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282static void repack_prepare_midx_command(struct child_process *cmd,
283 struct repack_write_midx_opts *opts,
284 const char *subcommand)
285{
286 cmd->git_cmd = 1;
287
288 strvec_pushl(&cmd->args, "multi-pack-index", subcommand, NULL);
289
290 if (opts->show_progress)
291 strvec_push(&cmd->args, "--progress");
292 else
293 strvec_push(&cmd->args, "--no-progress");
294
295 if (opts->write_bitmaps)
296 strvec_push(&cmd->args, "--bitmap");
297}
298
299static int repack_fill_midx_stdin_packs(struct child_process *cmd,
300 struct string_list *include,

Calls 2

strvec_pushlFunction · 0.85
strvec_pushFunction · 0.85

Tested by

no test coverage detected