Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Why isn't there a hook for all operations that update the working tree?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:44

Ævar Arnfjörð Bjarmason [off-list ref] writes:
... Is there any
reason beside omission that there isn't a post-reset hook?
Or hooks for any other thing ...
In principle, we historically tended to avoid hooks unless absolutely
necessary. Even having to check to find out no hook needs to be run is
considered wasted cycles.

  http://thread.gmane.org/gmane.comp.version-control.git/79314/focus=79321

I'd especially rather not to see a hook on something as low level as
"reset". It would be too tempting to use "reset" itself inside a hook that
is run from the post-reset hook, and I do not want to complicate the code
even further to give callers to ask disabling the hook.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help