diff options
| author | Sean Whitton | 2022-12-02 23:42:10 -0700 |
|---|---|---|
| committer | Sean Whitton | 2022-12-02 23:58:30 -0700 |
| commit | 17d40c163e088e25152aedcfb18d733cc8e54756 (patch) | |
| tree | 96630b95ffe3e44b55f4c60a5d1958bf706411a7 | |
| parent | 1e36ad9458e8deacfc85da573bb0ca0f270d4802 (diff) | |
| download | emacs-17d40c163e088e25152aedcfb18d733cc8e54756.tar.gz emacs-17d40c163e088e25152aedcfb18d733cc8e54756.zip | |
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.
| -rw-r--r-- | lisp/vc/vc-git.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index a1ff03144bc..38e9d5f9c91 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." | |||
| 1325 | ,(format "--pretty=tformat:%s" | 1325 | ,(format "--pretty=tformat:%s" |
| 1326 | (car vc-git-root-log-format)) | 1326 | (car vc-git-root-log-format)) |
| 1327 | "--abbrev-commit")) | 1327 | "--abbrev-commit")) |
| 1328 | vc-git-log-switches | 1328 | (ensure-list vc-git-log-switches) |
| 1329 | (when (numberp limit) | 1329 | (when (numberp limit) |
| 1330 | (list "-n" (format "%s" limit))) | 1330 | (list "-n" (format "%s" limit))) |
| 1331 | (when start-revision | 1331 | (when start-revision |