Call save-some-changes before getting status.
This commit is contained in:
parent
bfe37ddf3e
commit
7dfae6e402
1 changed files with 1 additions and 0 deletions
1
mgit.el
1
mgit.el
|
@ -243,6 +243,7 @@
|
|||
|
||||
(defun mgit-status (dir)
|
||||
(interactive (list (mgit-read-top-dir current-prefix-arg)))
|
||||
(save-some-buffers)
|
||||
(let ((buf (get-buffer-create "*git-status*")))
|
||||
(switch-to-buffer buf)
|
||||
(setq default-directory dir)
|
||||
|
|
Loading…
Reference in a new issue