]> git.ipfire.org Git - thirdparty/git.git/commit
git-p4: use 'git hook' to run hooks
authorEmily Shaffer <emilyshaffer@google.com>
Wed, 22 Dec 2021 03:59:39 +0000 (04:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jan 2022 23:19:35 +0000 (15:19 -0800)
commit0c8ac06b53cf048dc5aae6f31123e93b62af7cfc
treee01b6df6d51b48a792be416740e2f7a5f9616450
parenta75553045467d81f504d55379c773222f227736b
git-p4: use 'git hook' to run hooks

Instead of duplicating the behavior of run-command.h:run_hook_le() in
Python, we can directly call 'git hook run'. We emulate the existence
check with the --ignore-missing flag.

We're dropping the "verbose" handling added in 9f59ca4d6af (git-p4:
create new function run_git_hook, 2020-02-11), those who want
diagnostic output about how hooks are run are now able to get that via
e.g. the trace2 facility and GIT_TRACE=1.

Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py