Function: vc-jj-registered

vc-jj-registered is a natively compiled function defined in vc-jj.el.

Signature

(vc-jj-registered FILE)

Documentation

Check whether FILE is registered with jj.

Return non-nil when FILE is file tracked by JJ and nil when not.

Source Code

;; Defined in /nix/store/j1ql1qsv99iszr5pqf5fk9yfcl5pq4nv-emacs-packages-deps/share/emacs/site-lisp/elpa/vc-jj-0.5/vc-jj.el
;;; STATE-QUERYING FUNCTIONS

;;;; registered

;;;###autoload (defun vc-jj-registered (file)
;;;###autoload   "Return non-nil if FILE is registered with jj."
;;;###autoload   (if (and (vc-find-root file ".jj")   ; Short cut.
;;;###autoload            (executable-find "jj"))
;;;###autoload       (progn
;;;###autoload         (load "vc-jj" nil t)
;;;###autoload         (vc-jj-registered file))))
(defun vc-jj-registered (file)
  "Check whether FILE is registered with jj.
Return non-nil when FILE is file tracked by JJ and nil when not."
  (when-let ((default-directory (vc-jj-root file)))
    (vc-jj--process-lines "file" "list" "--"
                          (vc-jj--filename-to-fileset file))))