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

Re: cloning/pulling hooks

From
Petr Baudis <pasky@suse.cz>
Date
Aug 29, 2007, 13:54 UTC
Message-ID
<20070829135441.GI10749@pasky.or.cz>
In-Reply-To
<Pine.LNX.4.64.0708291446011.28586@racer.site>
  Hi,
On Wed, Aug 29, 2007 at 03:49:45PM CEST, Johannes Schindelin wrote:
Show 20 quoted lines
> On Wed, 29 Aug 2007, Benjamin Collins wrote:
> 
> > Of course, I understand why it's not already like that, particularly 
> > given the context of Linux development practices.
> 
> It has nothing to do with Linux development practices.  There are 
> fundamental reasons why we don't fetch hooks:
> 
> - they are _not_ part of the repository; just look at the 
>   .gitattributes-in-the-index-but-not-worktree issue to find out why,
> 
> - it is _private_ data, just like the config.  The client has _no 
>   business_ to read them, let alone fetch them,
> 
> - if you have the hooks on different machines, chances are that you need a 
>   mechanism to update the hooks... This naturally suggests putting the 
>   hooks into their own branch.
> 
> Probably there are way more reasons not to allow such a thing as fetching 
> hooks.
  these are all really just technical details - if we decided that it
_is_ useful to have a mechanism to manage hooks, it really is no problem
to introduce some easy-to-use automated way to keep .git/hooks/ updated
based on some head, have .git-hooks/ as part of your current branch, or
whatever. And of course, "fetching hooks" may not (and very frequently
you wouldn't ever want it to) mean "grabbing the same hooks the server
uses".
-- 
				Petr "Pasky" Baudis
Early to rise and early to bed makes a male healthy and wealthy and dead.
                -- James Thurber
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 10 of 17 in “Re: cloning/pulling hooks”
  1. Andy ParkinsAug 29, 2007
  2. Petr BaudisAug 29, 2007
  3. Andy ParkinsAug 29, 2007
  4. Johannes SchindelinAug 29, 2007
  5. Andy ParkinsAug 29, 2007
  6. Alex RiesenAug 29, 2007
  7. Benjamin CollinsAug 29, 2007
  8. Petr BaudisAug 29, 2007
  9. Johannes SchindelinAug 29, 2007
  10. Petr BaudisAug 29, 2007
  11. Johannes SchindelinAug 29, 2007
  12. Petr BaudisAug 29, 2007
  13. Johannes SchindelinAug 29, 2007
  14. Petr BaudisAug 29, 2007
  15. Johannes SchindelinAug 29, 2007
  16. Alex RiesenAug 29, 2007
  17. Junio C HamanoAug 29, 2007

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.