summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 1e89b16..5c18d66 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -227,7 +227,7 @@ instead.
\(git reset REV -- FILE)
\(git checkout REV -- FILE)"
(interactive
- (let ((rev (magit-read-branch-or-commit "Revision")))
+ (let ((rev (magit-read-branch-or-commit "Revision" magit-buffer-revision)))
(list rev (magit-read-file-from-rev rev "File") current-prefix-arg)))
(magit-with-toplevel
(magit-run-git (if checkout "checkout" "reset")