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

Function abort_commit

builtin/merge.c:900–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898
899static void write_merge_state(struct commit_list *);
900static void abort_commit(struct commit_list *remoteheads, const char *err_msg)
901{
902 if (err_msg)
903 error("%s", err_msg);
904 fprintf(stderr,
905 _("Not committing merge; use 'git commit' to complete the merge.\n"));
906 write_merge_state(remoteheads);
907 exit(1);
908}
909
910static const char merge_editor_comment[] =
911N_("Please enter a commit message to explain why this merge is necessary,\n"

Callers 1

prepare_to_commitFunction · 0.85

Calls 2

errorFunction · 0.85
write_merge_stateFunction · 0.85

Tested by

no test coverage detected