Function: magit-process-unset-mode-line
magit-process-unset-mode-line is a natively compiled function defined
in magit-process.el.
Signature
(magit-process-unset-mode-line &optional DIRECTORY)
Documentation
Remove the git command from the mode line.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-process.el
(defun magit-process-unset-mode-line (&optional directory)
"Remove the git command from the mode line."
(let ((default-directory (or directory default-directory)))
(unless (magit-repository-local-get 'inhibit-magit-process-unset-mode-line)
(magit-repository-local-set 'mode-line-process nil)
(dolist (buf (magit-mode-get-buffers))
(with-current-buffer buf (setq mode-line-process nil)))
(force-mode-line-update t))))