* Removes the am_state directory, forcefully terminating the current am * session. */
| 473 | * session. |
| 474 | */ |
| 475 | static void am_destroy(const struct am_state *state) |
| 476 | { |
| 477 | struct strbuf sb = STRBUF_INIT; |
| 478 | |
| 479 | strbuf_addstr(&sb, state->dir); |
| 480 | remove_dir_recursively(&sb, 0); |
| 481 | strbuf_release(&sb); |
| 482 | } |
| 483 | |
| 484 | /** |
| 485 | * Runs applypatch-msg hook. Returns its exit code. |
no test coverage detected