branch: externals/vc-jj
commit d02704e17edc977f4535daf320c0470dfd95587b
Author: Kristoffer Balintona <krisbalint...@gmail.com>
Commit: Rudi Schlatte <r...@noreply.codeberg.org>

    fix: Call the “log” subcommand for `vc-print-log` and `vc-print-root-log`
    
    Currently, `vc-print-log` and `vc-print-root-log` internally call jj
    without specifying the “log” jj subcommand (i.e., “jj log ...”).
    Consequently, users who have not configured jj’s ui.default-command
    setting to log will see this message at the top of their log-view
    buffers:
    
        Hint: Use `jj -h` for a list of available commands.
        Run `jj config set --user ui.default-command log` to disable this 
message.
    
    Worse, if users have configured that setting to a different
    subcommand, `vc-print-log` and `vc-print-root-log` will fail to show a
    log entirely.
---
 vc-jj.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vc-jj.el b/vc-jj.el
index efed1b8a2e..4a2d565eb1 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -456,8 +456,7 @@ If REV is not specified, revert the file as with 
`vc-jj-revert'."
                  files))))
     (with-current-buffer buffer
       (apply #'vc-jj--command-dispatched buffer
-        'async nil
-        args))))
+        'async nil "log" args))))
 
 (defun vc-jj-show-log-entry (revision)
   "Move to the log entry for REVISION."

Reply via email to