[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 17d40c163e: vc-git-print-log: Don't assume vc-git-log-switches
From: |
Sean Whitton |
Subject: |
emacs-29 17d40c163e: vc-git-print-log: Don't assume vc-git-log-switches is a list |
Date: |
Sat, 3 Dec 2022 02:06:06 -0500 (EST) |
branch: emacs-29
commit 17d40c163e088e25152aedcfb18d733cc8e54756
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Sean Whitton <spwhitton@spwhitton.name>
vc-git-print-log: Don't assume vc-git-log-switches is a list
* 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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index a1ff03144b..38e9d5f9c9 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 17d40c163e: vc-git-print-log: Don't assume vc-git-log-switches is a list,
Sean Whitton <=