branch: elpa/magit
commit 135d844e745e274d9aa4f4644c63611953c284a4
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-wip-commit-before-change: No longer use magit-with-toplevel
    
    If that's unnecessary in `magit-wip-commit-after-apply',
    then it's unnecessary here as well.
---
 lisp/magit-wip.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/magit-wip.el b/lisp/magit-wip.el
index e307c0d9de5..5332a517cc3 100644
--- a/lisp/magit-wip.el
+++ b/lisp/magit-wip.el
@@ -160,8 +160,7 @@ command which is about to be called are committed."
 
 (defun magit-wip-commit-before-change (&optional files msg)
   (when magit-wip-before-change-mode
-    (magit-with-toplevel
-      (magit-wip-commit files msg))))
+    (magit-wip-commit files msg)))
 
 (define-minor-mode magit-wip-initial-backup-mode
   "Before saving a buffer for the first time, commit to a wip ref."

Reply via email to