* Why there is no pre-checkout hook?
@ 2010-10-15 8:21 Óscar Fuentes
2010-10-15 8:30 ` Jonathan Nieder
0 siblings, 1 reply; 3+ messages in thread
From: Óscar Fuentes @ 2010-10-15 8:21 UTC (permalink / raw)
To: git
Subject says it all.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why there is no pre-checkout hook?
2010-10-15 8:21 Why there is no pre-checkout hook? Óscar Fuentes
@ 2010-10-15 8:30 ` Jonathan Nieder
2010-10-15 22:46 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Nieder @ 2010-10-15 8:30 UTC (permalink / raw)
To: Óscar Fuentes; +Cc: git
Óscar Fuentes wrote:
> [Subject: Why there is no pre-checkout hook?]
Because you can use your script in place of "git checkout".
Or: because no one's come up with a compelling use case for
one.
Or: because no one implemented it and demonstrated how to
use it yet.
Take your pick. :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why there is no pre-checkout hook?
2010-10-15 8:30 ` Jonathan Nieder
@ 2010-10-15 22:46 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2010-10-15 22:46 UTC (permalink / raw)
To: Jonathan Nieder; +Cc: Óscar Fuentes, git
Jonathan Nieder <jrnieder@gmail.com> writes:
> Óscar Fuentes wrote:
>
>> [Subject: Why there is no pre-checkout hook?]
>
> Because you can use your script in place of "git checkout".
>
> Or: because no one's come up with a compelling use case for
> one.
>
> Or: because no one implemented it and demonstrated how to
> use it yet.
>
> Take your pick. :)
The first one is the most correct answer from historical standpoint for
almost any command, as git was designed to be scripted, and if you need
pre-frotz to always run before running frotz you should be doing that
before running frotz yoruself. The same for post-frotz that would
unconditionally run after you run frotz.
Google/Bing/Gmane Search for "five valid reasons for git hook" ;-)
Having said that, I think it may be a good time to start thinking about
loosening the criteria, especially unconditional pre- and post- ones,
around Porcelain commands. The "five valid reasons" criteria apply to
plumbing where you have more control and freedom and we do not want to
spend extra cycles even to check for non-existence of hooks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-15 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-15 8:21 Why there is no pre-checkout hook? Óscar Fuentes
2010-10-15 8:30 ` Jonathan Nieder
2010-10-15 22:46 ` Junio C Hamano
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).