Call save-some-changes before getting status.

This commit is contained in:
Marius Vollmer 2008-08-06 01:53:39 +03:00
parent bfe37ddf3e
commit 7dfae6e402

View file

@ -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)