Function: magit-git-command-topdir

magit-git-command-topdir is an autoloaded, interactive and byte-compiled function defined in magit.el.

Signature

(magit-git-command-topdir COMMAND)

Documentation

Execute COMMAND asynchronously; display output.

Interactively, prompt for COMMAND in the minibuffer. "git " is used as initial input, but can be deleted to run another command.

COMMAND is run in the top-level directory of the current working tree.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit.el
;;;###autoload
(defun magit-git-command-topdir (command)
  "Execute COMMAND asynchronously; display output.

Interactively, prompt for COMMAND in the minibuffer.  \"git \" is
used as initial input, but can be deleted to run another command.

COMMAND is run in the top-level directory of the current
working tree."
  (interactive (list (magit-read-shell-command t "git ")))
  (magit--shell-command command (magit-toplevel)))