Skip to content

Commit 7088f80

Browse files
pyokagangitster
authored andcommitted
builtin-am: invoke post-applypatch hook
Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am.sh will invoke the post-applypatch hook after the patch is applied and a commit is made. The exit code of the hook is ignored. Re-implement this in builtin/am.c. Signed-off-by: Paul Tan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6c24c5c commit 7088f80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/am.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,8 @@ static void do_commit(const struct am_state *state)
13781378
fclose(fp);
13791379
}
13801380

1381+
run_hook_le(NULL, "post-applypatch", NULL);
1382+
13811383
strbuf_release(&sb);
13821384
}
13831385

0 commit comments

Comments
 (0)