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

    magit--revert-blob-buffer: Do not set local variables
    
    Leave it to `magit--revert-blob-buffer', which was the plan all along,
    but then I forgot about it, when cleaning this up before committing.
---
 lisp/magit-files.el | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index 44eec9d3a7..50f069af9a 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -133,9 +133,6 @@ REV is a revision or one of \"{worktree}\" or \"{index}\"."
   (let ((old-rev-oid magit-buffer-revision-oid)
         (line (line-number-at-pos))
         (col (current-column)))
-    (setq magit-buffer-blob-oid (magit-blob-oid magit-buffer-revision
-                                                magit-buffer-file-name))
-    (setq magit-buffer-revision-oid (magit-commit-oid magit-buffer-revision))
     (magit--refresh-blob-buffer t)
     (magit-find-file--restore-position (current-buffer)
                                        magit-buffer-revision-oid

Reply via email to