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

Function cmd_cherry_pick

builtin/revert.c:301–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301int cmd_cherry_pick(int argc,
302const char **argv,
303const char *prefix,
304struct repository *repo UNUSED)
305{
306 struct replay_opts opts = REPLAY_OPTS_INIT;
307 int res;
308
309#ifndef WITH_BREAKING_CHANGES
310 warn_on_auto_comment_char = true;
311#endif /* !WITH_BREAKING_CHANGES */
312 opts.action = REPLAY_PICK;
313 sequencer_init_config(&opts);
314 res = run_sequencer(argc, argv, prefix, &opts);
315 if (res < 0)
316 die(_("cherry-pick failed"));
317 replay_opts_release(&opts);
318 return res;
319}

Callers

nothing calls this directly

Calls 4

sequencer_init_configFunction · 0.85
run_sequencerFunction · 0.85
replay_opts_releaseFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected