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

Function find_option_by_long_name

parse-options.c:1304–1312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302}
1303
1304static const struct option *find_option_by_long_name(const struct option *opts,
1305 const char *long_name)
1306{
1307 for (; opts->type != OPTION_END; opts++) {
1308 if (opts->long_name && !strcmp(opts->long_name, long_name))
1309 return opts;
1310 }
1311 return NULL;
1312}
1313
1314static enum parse_opt_result usage_with_options_internal(struct parse_opt_ctx_t *ctx,
1315 const char * const *usagestr,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected