Function: majutsu-sparse-enabled-p

majutsu-sparse-enabled-p is a natively compiled function defined in majutsu-sparse.el.

Signature

(majutsu-sparse-enabled-p)

Documentation

Return non-nil if working tree is using sparse patterns.

This checks if patterns differ from the default '.' (all files).

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-sparse.el
(defun majutsu-sparse-enabled-p ()
  "Return non-nil if working tree is using sparse patterns.
This checks if patterns differ from the default '.' (all files)."
  (let ((patterns (majutsu-sparse-patterns)))
    (not (and (= (length patterns) 1)
              (string= (car patterns) ".")))))