Re: [PATCH] commit: use config-based hooks (config-based hooks part II)
- From
Josh Steadmon <steadmon@google.com>
- Date
- Dec 16, 2020, 00:31 UTC
- Message-ID
- <20201216003126.GQ36751@google.com>
- In-Reply-To
- <20201014232517.3068298-1-emilyshaffer@google.com>
On 2020.10.14 16:25, Emily Shaffer wrote:
Show 8 quoted lines
> As part of the adoption of config-based hooks, teach run_commit_hook() > to call hook.h instead of run-command.h. This covers 'pre-commit', > 'commit-msg', and 'prepare-commit-msg'. Additionally, ask the hook > library - not run-command - whether any hooks will be run, as it's > possible hooks may exist in the config but not the hookdir. > > Signed-off-by: Emily Shaffer <emilyshaffer@google.com> > ---
Apart from the minor issues I noted on patches 8 & 10, this looks good to me.
Reviewed-by: Josh Steadmon <steadmon@google.com>