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

Function parse_options_end

parse-options.c:1171–1179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169}
1170
1171int parse_options_end(struct parse_opt_ctx_t *ctx)
1172{
1173 if (ctx->flags & PARSE_OPT_ONE_SHOT)
1174 return ctx->total - ctx->argc;
1175
1176 MOVE_ARRAY(ctx->out + ctx->cpidx, ctx->argv, ctx->argc);
1177 ctx->out[ctx->cpidx + ctx->argc] = NULL;
1178 return ctx->cpidx + ctx->argc;
1179}
1180
1181int parse_options(int argc, const char **argv,
1182 const char *prefix,

Callers 4

parse_optionsFunction · 0.85
cmd_blameFunction · 0.85
cmd_update_indexFunction · 0.85
cmd_shortlogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected