git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Sverre RabbelierNext: Thomas Hunger
Message 3 of 6 in “multiple files for the same hook”
  1. Thomas HungerMay 12, 2008
  2. Sverre RabbelierMay 12, 2008
  3. Miklos VajnaMay 12, 2008
  4. Thomas HungerMay 12, 2008
  5. Jeff KingMay 13, 2008
  6. Martin LanghoffMay 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.