Function: magit--checkout

magit--checkout is a byte-compiled function defined in magit-branch.el.

Signature

(magit--checkout REV &optional ARGS)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-branch.el
(defun magit--checkout (rev &optional args)
  (when (string-match "\\`heads/\\(.+\\)" rev)
    (setq rev (match-str 1 rev)))
  (magit-call-git "checkout" args rev))