When I have a buffer with unsaved changes, magit asks for each and every action to save that changes.
I didn't save that changes on purpose, so is there a way to disable this behaviour? My Magit should simply ignore unsaved changes.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityMagit has a variable called magit-save-repository-buffers
that is by default set to t
. Try setting it to nil
Here is the documentation for the magit-save-repository-buffers
variable, which describes the behavior for values t
, nil
, and 'dontask
.
Documentation: Whether to save file-visiting buffers when appropriate.
If this is non-nil then all modified file-visiting buffers belonging to the current repository may be saved before running commands, before creating new Magit buffers, and before explicitly refreshing such buffers. If this is `dontask' then this is done without user intervention, if it is t then the user has to confirm each save. `dontask' is the recommended setting.