* Saves state->msg in the state directory's "final-commit" file. */
| 383 | * Saves state->msg in the state directory's "final-commit" file. |
| 384 | */ |
| 385 | static 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. |
no test coverage detected