MCPcopy Index your code
hub / github.com/git/git / write_commit_msg

Function write_commit_msg

builtin/am.c:385–389  ·  view source on GitHub ↗

* Saves state->msg in the state directory's "final-commit" file. */

Source from the content-addressed store, hash-verified

383 * Saves state->msg in the state directory's "final-commit" file.
384 */
385static void write_commit_msg(const struct am_state *state)
386{
387 const char *filename = am_path(state, "final-commit");
388 write_file_buf(filename, state->msg, state->msg_len);
389}
390
391/**
392 * Loads state from disk.

Callers 1

am_runFunction · 0.85

Calls 2

am_pathFunction · 0.85
write_file_bufFunction · 0.85

Tested by

no test coverage detected