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

Function parse_revision_opt

revision.c:2730–2742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2728}
2729
2730void parse_revision_opt(struct rev_info *revs, struct parse_opt_ctx_t *ctx,
2731 const struct option *options,
2732 const char * const usagestr[])
2733{
2734 int n = handle_revision_opt(revs, ctx->argc, ctx->argv,
2735 &ctx->cpidx, ctx->out, NULL);
2736 if (n <= 0) {
2737 error("unknown option `%s'", ctx->argv[0]);
2738 usage_with_options(usagestr, options);
2739 }
2740 ctx->argv += n;
2741 ctx->argc -= n;
2742}
2743
2744void revision_opts_finish(struct rev_info *revs)
2745{

Callers 2

cmd_blameFunction · 0.85
cmd_shortlogFunction · 0.85

Calls 3

handle_revision_optFunction · 0.85
errorFunction · 0.85
usage_with_optionsFunction · 0.85

Tested by

no test coverage detected