On Mon, Mar 3, 2014 at 3:06 PM, Ted Zlatanov <[email protected]> wrote: > NP> Looks like the relevant commit was b6c80f5 (2 months ago). > > I think it's more recent but haven't bisected it exactly.
That commit contains: +(defun magit-maybe-turn-on-auto-revert-mode () + "Turn on Auto-Revert mode if file is inside a Git repository. +This function is intended as a hook for `find-file-hook'. It +turns on `auto-revert-mode' if `magit-turn-on-auto-revert-mode' +is non-nil, the buffer is visiting a file in a Git repository, +and no variation of the Auto-Revert mode is already active." + (when (and magit-turn-on-auto-revert-mode + (not auto-revert-mode) + (not auto-revert-tail-mode) + (not global-auto-revert-mode) + (magit-get-top-dir)) + (auto-revert-mode 1))) + +(add-hook 'find-file-hook 'magit-maybe-turn-on-auto-revert-mode) Which would implement exactly the behaviour you're describing, so 99% it's that one. -- 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.
