Can Emacs ignore change of timestamp of git stashed file? -


I have written a small function in the MX that hide

  git hiding the git  

I am in the GIT repository of that file, and I have added this function to after-save-hook , so this file Runs every time to save. The problem is that when I save the file, the git commands and timestamps running above change, so Imac thinks that the file has been modified outside of the MX. Naturally, when I try to edit the file again (without closing and reopening), then MX asks if I really want to edit buffer which is quite upset.

How do Emacs think, the file has been changed as the result of the above git commands?

Edit: Thanks jvasak

at the end of my function (back -Buffer Nyl TT) Adding>

I do not know to make sure that it will work, but you can leave back-buffer after your after-left-hook < / Code>, which should reload the file from disk. Driven with the Combined-Un-query move, it can provide the desired behavior.


Comments