Often, when I switch branches in git, if the files are open in emacs, then emacs asks if I want to revert them (as it thinks they\'ve changed on disk) even though the conten
Magit package do this automatically, when you activate magit-ionotify-mode (inotify need emacs 24.4 on linux). Its description you can find here.