On Wed, Mar 5, 2014 at 1:10 PM, Jonas Bernoulli <[email protected]> wrote: > I do agree that having some functionality turned on by just loading > a library isn't good. But it is also how Magit has always done it, > I just made it do so by using a built-in mode instead of the broken > code Magit used before.
This is in some sense correct from an implementation perspective: in both cases the revert function is added to the hook at load time. But previously it was Magit's magit-refresh-file-buffer-hook which only gets called by Magit functions, whereas now it's find-file-hook which works without any intervention from Magit. So from the user's perspective the functionality used to only occur when using Magit, but now starts working as soon as it's loaded. -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
