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

Function cmd_bundle

builtin/bundle.c:235–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235int cmd_bundle(int argc,
236 const char **argv,
237 const char *prefix,
238 struct repository *repo)
239{
240 parse_opt_subcommand_fn *fn = NULL;
241 struct option options[] = {
242 OPT_SUBCOMMAND("create", &fn, cmd_bundle_create),
243 OPT_SUBCOMMAND("verify", &fn, cmd_bundle_verify),
244 OPT_SUBCOMMAND("list-heads", &fn, cmd_bundle_list_heads),
245 OPT_SUBCOMMAND("unbundle", &fn, cmd_bundle_unbundle),
246 OPT_END()
247 };
248
249 argc = parse_options(argc, argv, prefix, options, builtin_bundle_usage,
250 0);
251
252 packet_trace_identity("bundle");
253
254 return !!fn(argc, argv, prefix, repo);
255}

Callers

nothing calls this directly

Calls 2

parse_optionsFunction · 0.85
packet_trace_identityFunction · 0.85

Tested by

no test coverage detected