MCPcopy Index your code
hub / github.com/git/git / parse_options_cmd_bundle

Function parse_options_cmd_bundle

builtin/bundle.c:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56static int parse_options_cmd_bundle(int argc,
57 const char **argv,
58 const char* prefix,
59 const char * const usagestr[],
60 const struct option options[],
61 char **bundle_file) {
62 argc = parse_options(argc, argv, NULL, options, usagestr,
63 PARSE_OPT_STOP_AT_NON_OPTION);
64 if (!argc)
65 usage_msg_opt(_("need a <file> argument"), usagestr, options);
66 *bundle_file = prefix_filename_except_for_dash(prefix, argv[0]);
67 return argc;
68}
69
70static int cmd_bundle_create(int argc, const char **argv, const char *prefix,
71 struct repository *repo UNUSED) {

Callers 4

cmd_bundle_createFunction · 0.85
cmd_bundle_verifyFunction · 0.85
cmd_bundle_list_headsFunction · 0.85
cmd_bundle_unbundleFunction · 0.85

Calls 3

parse_optionsFunction · 0.85
usage_msg_optFunction · 0.85

Tested by

no test coverage detected