Skip to content

Commit 593ffdd

Browse files
nasamuffingitster
authored andcommitted
am: convert {pre,post}-applypatch to use hook.h
Teach pre-applypatch and post-applypatch to use the hook.h library instead of the run-command.h library. Signed-off-by: Emily Shaffer <[email protected]> Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Acked-by: Emily Shaffer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bad62a8 commit 593ffdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/am.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ static void do_commit(const struct am_state *state)
16091609
const char *reflog_msg, *author, *committer = NULL;
16101610
struct strbuf sb = STRBUF_INIT;
16111611

1612-
if (run_hook_le(NULL, "pre-applypatch", NULL))
1612+
if (run_hooks("pre-applypatch"))
16131613
exit(1);
16141614

16151615
if (write_cache_as_tree(&tree, 0, NULL))
@@ -1661,7 +1661,7 @@ static void do_commit(const struct am_state *state)
16611661
fclose(fp);
16621662
}
16631663

1664-
run_hook_le(NULL, "post-applypatch", NULL);
1664+
run_hooks("post-applypatch");
16651665

16661666
strbuf_release(&sb);
16671667
}

0 commit comments

Comments
 (0)