]> git.99rst.org Git - git.git/commitdiff
merge: convert post-merge to use hook.h
authorEmily Shaffer <redacted>
Wed, 22 Dec 2021 03:59:34 +0000 (04:59 +0100)
committerJunio C Hamano <redacted>
Fri, 7 Jan 2022 23:19:34 +0000 (15:19 -0800)
Teach post-merge to use the hook.h library instead of the
run-command.h library to run hooks.

Signed-off-by: Emily Shaffer <redacted>
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Acked-by: Emily Shaffer <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/merge.c

index 5f0476b0b761b60fdddffbc15217bd4e345570e4..5be3009c2a24a54381174f65a855cc9d02a117e5 100644 (file)
@@ -487,7 +487,7 @@ static void finish(struct commit *head_commit,
        }
 
        /* Run a post-merge hook */
-       run_hook_le(NULL, "post-merge", squash ? "1" : "0", NULL);
+       run_hooks_l("post-merge", squash ? "1" : "0", NULL);
 
        apply_autostash(git_path_merge_autostash(the_repository));
        strbuf_release(&reflog_message);
git clone https://git.99rst.org/PROJECT