branch: externals/vc-jj
commit 61444d3221a12584ff62752c2041a81c302eb921
Author: Rob <bruno.rob...@gmail.com>
Commit: Rob <bruno.rob...@gmail.com>

    Add vc-jj-command
    
    Prefer it over vc-jj--call-jj, as the new sets up buffers and local vars,
    automatically erases, and handles async gracefully
---
 vc-jj.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/vc-jj.el b/vc-jj.el
index 15f1aa221d..cbfb47066f 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -70,6 +70,13 @@ Return T if the process exited successfully (with exit 
status 0),
 NIL otherwise."
   (= 0 (apply #'call-process vc-jj-program nil t nil args)))
 
+(defun vc-jj-command (buffer okstatus file-or-list &rest flags)
+  ""
+  (apply #'vc-do-command (or buffer "*vc*") okstatus vc-jj-program
+    file-or-list
+    (append (list "--no-pager" "--color" "never")
+      flags)))
+
 (defun vc-jj--file-tracked (file)
   (with-temp-buffer
     (and (vc-jj--call-jj "file" "list" "--" file)

Reply via email to