Function: magit--checkout

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

Signature

(magit--checkout REV &optional ARGS)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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))