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

Function reset_merge

sequencer.c:3477–3488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3475}
3476
3477static int reset_merge(const struct object_id *oid)
3478{
3479 struct child_process cmd = CHILD_PROCESS_INIT;
3480
3481 cmd.git_cmd = 1;
3482 strvec_pushl(&cmd.args, "reset", "--merge", NULL);
3483
3484 if (!is_null_oid(oid))
3485 strvec_push(&cmd.args, oid_to_hex(oid));
3486
3487 return run_command(&cmd);
3488}
3489
3490static int rollback_single_pick(struct repository *r)
3491{

Callers 3

rollback_single_pickFunction · 0.85
skip_single_pickFunction · 0.85
sequencer_rollbackFunction · 0.85

Calls 5

strvec_pushlFunction · 0.85
is_null_oidFunction · 0.85
strvec_pushFunction · 0.85
oid_to_hexFunction · 0.85
run_commandFunction · 0.85

Tested by

no test coverage detected