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

Function parse_opt_rebase

builtin/pull.c:59–68  ·  view source on GitHub ↗

* Callback for --rebase, which parses arg with parse_config_rebase(). */

Source from the content-addressed store, hash-verified

57 * Callback for --rebase, which parses arg with parse_config_rebase().
58 */
59static int parse_opt_rebase(const struct option *opt, const char *arg, int unset)
60{
61 enum rebase_type *value = opt->value;
62
63 if (arg)
64 *value = parse_config_rebase("--rebase", arg, 0);
65 else
66 *value = unset ? REBASE_FALSE : REBASE_TRUE;
67 return *value == REBASE_INVALID ? -1 : 0;
68}
69
70static const char * const pull_usage[] = {
71 N_("git pull [<options>] [<repository> [<refspec>...]]"),

Callers

nothing calls this directly

Calls 1

parse_config_rebaseFunction · 0.85

Tested by

no test coverage detected