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

    magit--revert-blob-buffer: Do not error on "{index}"
    
    (Refresh avoidance and position restoration still need work.)
---
 lisp/magit-files.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index 157da805dbf..44eec9d3a7a 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -145,7 +145,7 @@ REV is a revision or one of \"{worktree}\" or \"{index}\"."
 (defun magit--refresh-blob-buffer (&optional force)
   (let ((old-blob-oid magit-buffer-blob-oid))
     (setq magit-buffer-revision-oid
-          (magit-commit-oid magit-buffer-revision))
+          (magit-commit-oid magit-buffer-revision t))
     (setq magit-buffer-blob-oid
           (magit-blob-oid magit-buffer-revision magit-buffer-file-name))
     (when (or force (not (equal old-blob-oid magit-buffer-blob-oid)))

Reply via email to