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

HowTo distribute a hook with the reposity.

From
JHJohn P. Hartmann <jphartmann@gmail.com>
Date
Dec 28, 2016, 01:34 UTC
Message-ID
<6e228b75-0208-63e8-b4e8-70905e3f9ea3@gmail.com>

I would like a hook in .got/hooks to be made available to all who clone or pull a particular project. I'd also like the hook to be under git control (changes committed &c). I added a hook, but git status does not show it. Presumably git excludes its files in .git/ from version control lest there be a chiken-and-egg situation.

Is there a way to achieve this?  Or a better way to do it?
Thanks,  j.
Next: Jacob Keller
Message 1 of 9 in “HowTo distribute a hook with the reposity.”
  1. John P. HartmannDec 28, 2016
  2. Jacob KellerDec 28, 2016
  3. Jeff KingDec 28, 2016
  4. John P. HartmannDec 28, 2016
  5. Jeff KingDec 28, 2016
  6. John P. HartmannDec 28, 2016
  7. Jeff KingDec 28, 2016
  8. Jacob KellerDec 28, 2016
  9. Lars SchneiderDec 29, 2016

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.