How can I get Emacs to revert all unchanged buffers when switching branches in git?

前端 未结 3 794
面向向阳花
面向向阳花 2020-12-23 09:13

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

3条回答
  •  难免孤独
    2020-12-23 09:51

    Try the revbufs package:

    revbufs.el is a tiny Emacs package that safely reverts your buffers when you have files being edited both in Emacs and via external tools (e.g., code generators such as Jomtool)...

提交回复
热议问题