Function: vc-jj--filename-to-fileset

vc-jj--filename-to-fileset is a natively compiled function defined in vc-jj.el.

Signature

(vc-jj--filename-to-fileset FILENAME)

Documentation

Convert FILENAME to a JJ fileset expression.

The fileset expression returned is relative to the JJ repository root.

When FILENAME is not inside a JJ repository, throw an error.

Source Code

;; Defined in /nix/store/j1ql1qsv99iszr5pqf5fk9yfcl5pq4nv-emacs-packages-deps/share/emacs/site-lisp/elpa/vc-jj-0.5/vc-jj.el
(defun vc-jj--filename-to-fileset (filename)
  "Convert FILENAME to a JJ fileset expression.
The fileset expression returned is relative to the JJ repository root.

When FILENAME is not inside a JJ repository, throw an error."
  (if-let ((root (vc-jj-root filename))
           (default-directory root))
      (format "root:%S" (file-relative-name filename root))
    (error "File is not inside a JJ repository: %s" filename)))