summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2021-12-22 03:59:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-01-07 23:19:35 (GMT)
commit0c8ac06b53cf048dc5aae6f31123e93b62af7cfc (patch)
treee01b6df6d51b48a792be416740e2f7a5f9616450 /commit.c
parenta75553045467d81f504d55379c773222f227736b (diff)
downloadgit-0c8ac06b53cf048dc5aae6f31123e93b62af7cfc.zip
git-0c8ac06b53cf048dc5aae6f31123e93b62af7cfc.tar.gz
git-0c8ac06b53cf048dc5aae6f31123e93b62af7cfc.tar.bz2
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions