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

Function parse_options_check_harder

parse-options.c:724–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724static void parse_options_check_harder(const struct option *opts)
725{
726 struct strset long_names = STRSET_INIT;
727
728 for (; opts->type != OPTION_END; opts++) {
729 if (opts->long_name) {
730 if (!strset_add(&long_names, opts->long_name))
731 optbug(opts, "long name already used");
732 }
733 }
734 BUG_if_bug("invalid 'struct option'");
735 strset_clear(&long_names);
736}
737
738static int has_subcommands(const struct option *options)
739{

Callers 1

Calls 3

strset_addFunction · 0.85
optbugFunction · 0.85
strset_clearFunction · 0.85

Tested by

no test coverage detected