Re: Is there any way to make hooks part of the repository?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: Is there any way to make hooks part of the repository?

From: Randal L. Schwartz <hidden>
Date: 2016-06-15 22:53:42

quoted
quoted
quoted
quoted
"Junio" == Junio C Hamano [off-list ref] writes:
Junio> By design.  Do you want me to include "rm -fr ~hilco" in some hook of
Junio> git.git repository?

This just came up yesterday at $PRIMARY_CLIENT.  One idea we kicked
around was having a convention for storing the hooks-to-be-populated in
".githooks" in the repository tree, and then having clone notice that
and offer to install them directly if from a trusted source, or at least
move them into a disabled state in .git/hooks otherwise.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[off-list ref] <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion

Re: Is there any way to make hooks part of the repository?

From: Hilco Wijbenga <hidden>
Date: 2016-06-15 22:53:42

On 1 May 2012 13:57, Randal L. Schwartz [off-list ref] wrote:
quoted
quoted
quoted
quoted
quoted
"Junio" == Junio C Hamano [off-list ref] writes:
Junio> By design.  Do you want me to include "rm -fr ~hilco" in some hook of
Junio> git.git repository?

This just came up yesterday at $PRIMARY_CLIENT.  One idea we kicked
around was having a convention for storing the hooks-to-be-populated in
".githooks" in the repository tree, and then having clone notice that
and offer to install them directly if from a trusted source, or at least
move them into a disabled state in .git/hooks otherwise.
I guess it would have to be more than just clone. You are quite likely
to update/add hooks later on.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help