From: Junio C Hamano Date: Thu, 04 Aug 2011 02:06:26 GMT Subject: Re: Why isn't there a hook for all operations that update the working tree? Message-ID: <7v1ux26icd.fsf@alter.siamese.dyndns.org> In-Reply-To: Ævar Arnfjörð Bjarmason 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.