]> git.eshelyaron.com Git - emacs.git/commitdiff
vc-git-print-log: Don't assume vc-git-log-switches is a list
authorSean Whitton <spwhitton@spwhitton.name>
Sat, 3 Dec 2022 06:42:10 +0000 (23:42 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Sat, 3 Dec 2022 06:58:30 +0000 (23:58 -0700)
* lisp/vc/vc-git.el (vc-git-print-log): Call ensure-list on
vc-git-log-switches to handle the case where it's a singular string.

lisp/vc/vc-git.el

index a1ff03144bcd3d3fb5f737d23564aa18cade3cbc..38e9d5f9c91e74432d919339b840bb82859a33bb 100644 (file)
@@ -1325,7 +1325,7 @@ If LIMIT is a revision string, use it as an end-revision."
                     ,(format "--pretty=tformat:%s"
                              (car vc-git-root-log-format))
                     "--abbrev-commit"))
-                vc-git-log-switches
+                (ensure-list vc-git-log-switches)
                 (when (numberp limit)
                   (list "-n" (format "%s" limit)))
                (when start-revision