Re: multiple files for the same hook
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- May 12, 2008, 20:44 UTC
- Message-ID
- <20080512204445.GT27724@genesis.frugalware.org>
- In-Reply-To
- <200805122039.49779.hto@arcor.de>
On Mon, May 12, 2008 at 08:39:49PM +0000, Thomas Hunger <hto@arcor.de> wrote:
Show 10 quoted lines
> we use hooks a lot for various cleanup tasks, tests and warnings. It > would be wonderful if we could keep the hook logic in separate files. > > Something like > > hooks/post-commit.d/ > > where all executable files in the dir are executed in alphanumeric > order. Is there a possibility of this going into git (I could try a > patch)?
why would you want so? just create a script named hooks/post-commit, like:
---- #!/bin/sh /path/to/first/script /path/to/second/script ----
or so.
it's not something git should do for you.