Function: magit-anything-unstaged-p
magit-anything-unstaged-p is a byte-compiled function defined in
magit-git.el.
Signature
(magit-anything-unstaged-p &optional IGNORE-SUBMODULES &rest FILES)
Documentation
Return t if there are any unstaged changes.
If optional FILES is non-nil, then only changes to those files are considered.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-anything-unstaged-p (&optional ignore-submodules &rest files)
"Return t if there are any unstaged changes.
If optional FILES is non-nil, then only changes to those files
are considered."
(magit-git-failure "diff" "--quiet"
(if ignore-submodules
"--ignore-submodules"
;; Work around a bug in Git v2.46.0. See #5212 and #5221.
"--submodule=short")
"--" files))