Function: vc-jj--command-dispatched

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

Signature

(vc-jj--command-dispatched BUFFER OKSTATUS FILE-OR-LIST &rest FLAGS)

Documentation

Execute vc-jj-program, notifying the user and checking for errors.

See vc-do-command for documentation of the BUFFER, OKSTATUS, FILE-OR-LIST and FLAGS arguments.

Note: if we need to parse jj's output vc-jj--command-parseable should be used instead of this function, since jj might print warnings to stderr and1 vc-do-command cannot separate output to stdout and stderr.

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--command-dispatched (buffer okstatus file-or-list &rest flags)
  "Execute `vc-jj-program', notifying the user and checking for errors.
See `vc-do-command' for documentation of the BUFFER, OKSTATUS,
FILE-OR-LIST and FLAGS arguments.

Note: if we need to parse jj's output `vc-jj--command-parseable' should
be used instead of this function, since jj might print warnings to
stderr and1 `vc-do-command' cannot separate output to stdout and stderr."
  (let* ((filesets (mapcar #'vc-jj--filename-to-fileset (ensure-list file-or-list)))
         (global-switches (ensure-list vc-jj-global-switches)))
    (apply #'vc-do-command (or buffer "*vc*") okstatus vc-jj-program
           ;; Note that we pass NIL for FILE-OR-LIST to avoid
           ;; vc-do-command mangling of filenames; we pass the fileset
           ;; expressions in ARGS instead.
           nil
           (append global-switches flags filesets))))