Function: magit-file-checkout
magit-file-checkout is an autoloaded, interactive and byte-compiled
function defined in magit-files.el.
Signature
(magit-file-checkout REV FILE)
Documentation
Checkout FILE from REV.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-files.el
;;;###autoload
(defun magit-file-checkout (rev file)
"Checkout FILE from REV."
(interactive
(let ((rev (magit-read-branch-or-commit
"Checkout from revision" magit-buffer-revision)))
(list rev (magit-read-file-from-rev rev "Checkout file" nil t))))
(magit-with-toplevel
(magit-run-git "checkout" rev "--" file)))