* Callback for --rebase, which parses arg with parse_config_rebase(). */
| 57 | * Callback for --rebase, which parses arg with parse_config_rebase(). |
| 58 | */ |
| 59 | static 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 | |
| 70 | static const char * const pull_usage[] = { |
| 71 | N_("git pull [<options>] [<repository> [<refspec>...]]"), |
nothing calls this directly
no test coverage detected