Function: magit-with-toplevel
magit-with-toplevel is a macro defined in magit-git.el.
Signature
(magit-with-toplevel &rest BODY)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defmacro magit-with-toplevel (&rest body)
(declare (indent defun) (debug (body)))
`(let ((default-directory (magit--toplevel-safe)))
,@body))