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

Function am_destroy

builtin/am.c:475–482  ·  view source on GitHub ↗

* Removes the am_state directory, forcefully terminating the current am * session. */

Source from the content-addressed store, hash-verified

473 * session.
474 */
475static 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.

Callers 4

am_setupFunction · 0.85
am_runFunction · 0.85
am_abortFunction · 0.85
cmd_amFunction · 0.85

Calls 3

strbuf_addstrFunction · 0.85
remove_dir_recursivelyFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected