]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
move run_commit_hook() to libgit and use it there
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 15 Oct 2019 10:25:31 +0000 (10:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Oct 2019 01:30:51 +0000 (10:30 +0900)
commit49697cb72122cf84b44111124821c9a4bcba3ab6
treeff996f05507c53a17a63510919a986d22ba528e0
parent12bb7a540a39746fd6f62e4d5ffd016a2178bcf7
move run_commit_hook() to libgit and use it there

This function was declared in commit.h but was implemented in
builtin/commit.c so was not part of libgit. Move it to libgit so we can
use it in the sequencer. This simplifies the implementation of
run_prepare_commit_msg_hook() and will be used in the next commit.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
commit.c
sequencer.c