Function: vc-jj--command-parseable
vc-jj--command-parseable is a natively compiled function defined in
vc-jj.el.
Signature
(vc-jj--command-parseable &rest ARGS)
Documentation
Run jj with ARGS, returning its output as string.
Note: any filenames in ARGS should be converted via
vc-jj--filename-to-fileset.
In contrast to vc-jj--command-dispatched, discard output to stderr so
the output can be safely parsed. Does not support many of the features
of vc-jj--command-dispatched, such as async execution and checking of
process status.
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-parseable (&rest args)
"Run jj with ARGS, returning its output as string.
Note: any filenames in ARGS should be converted via
`vc-jj--filename-to-fileset'.
In contrast to `vc-jj--command-dispatched', discard output to stderr so
the output can be safely parsed. Does not support many of the features
of `vc-jj--command-dispatched', such as async execution and checking of
process status."
(with-temp-buffer
(let ((status (apply #'call-process vc-jj-program nil
(list (current-buffer) nil)
nil args)))
(unless (eq status 0)
(error "'jj' exited with status %s" status))
(buffer-substring-no-properties (point-min) (point-max)))))