On Tue, Mar 05, 2019 at 05:38:14PM -0800, debo via Git for human beings wrote:

> I wanted to see if there was any interest in extending support for allowing 
> a user to chain middlewares for git hooks. Currently, only one script can 
> be attached per hook, so a good-to-have item could be to allow chaining of 
> multiple scripts for a given hook, that follows a pre-defined configuration.

But this is trivially handled by creating an "umbrella" hook which would
look into any sort of "registry" of other hook scripts - a dedicated
directory in the simplest case - and execute them one by one, recreating
the setup suitable for each of them. (A family of the popular Linux-based
operating systems even have a ready-made solution for running a set of
scripts located in a named directory [1].)

I mean, what you want is already trivially doable with the current
mechanics.

1. https://manpages.debian.org/run-parts

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to