magit/magit — pull request #478 by monsanto (2012-09-24 05:01:15+00:00)
Title: Fix magit-save-buffers when called from magit-status

Make magit-save-buffers on magit-status use the directory we are opening, not the default directory of the buffer we are visiting when called.

This comes into play when using ```magit-save-buffers-predicate-tree-only```, because you can get spurious save requests since we don't actually check the buffer paths with respect to the git directory, but instead we check relative to whatever default directory the current buffer had when magit-status was called.