branch: externals/vc-jj
commit 25c9559907f30a63ee18e352997c54a6d63b96f1
Author: Kristoffer Balintona <[email protected]>
Commit: Kristoffer Balintona <[email protected]>

    Prefer "jj show --no-patch" over "jj log -n 1"
    
    When only one revision is expected to be returned by the revset passed
    to jj, "jj show" is preferred.  When the revset passed to jj may
    include multiple revisions, "jj log" may be used instead.
---
 vc-jj.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/vc-jj.el b/vc-jj.el
index ec27333087..0e5be8ee67 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -743,8 +743,9 @@ push\")."
 ;;;; get-change-comment
 
 (defun vc-jj-get-change-comment (_files rev)
-  "Get the change comment of revision REV."
-  (vc-jj--command-parseable nil "log" "--no-graph" "-n" "1"
+  "Return the description of REV.
+_FILES currently has no effect on this function."
+  (vc-jj--command-parseable nil "show" "--no-patch"
                             "-r" rev "-T" "description"))
 
 ;;;; modify-change-comment

Reply via email to