diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2021-06-11 04:39:34 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2021-06-11 04:39:34 +0300 |
commit | 86309efb4ad8fc0f3821254ba076834f24e71e4c (patch) | |
tree | 643b4d95bd20b016b90747deb0747826cfc5c653 /lisp | |
parent | af4cccb8d98516ae96a3ebdc9a9eb7d7d8d5c1c5 (diff) | |
download | emacs-86309efb4ad8fc0f3821254ba076834f24e71e4c.tar.gz emacs-86309efb4ad8fc0f3821254ba076834f24e71e4c.tar.bz2 emacs-86309efb4ad8fc0f3821254ba076834f24e71e4c.zip |
Simplify vc-git-log-switches's usage; change default value to nil
* lisp/vc/vc-git.el (vc-git-log-switches):
Do not mention or allow the value 't' anymore
(https://lists.gnu.org/archive/html/emacs-devel/2021-06/msg00452.html).
(vc-git-print-log): Use 'vc-git-log-switches' directly.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/vc/vc-git.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index bd29b88e87d..89f9800a1b5 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -127,9 +127,9 @@ If nil, use the value of `vc-annotate-switches'. If t, use no switches." (repeat :tag "Argument List" :value ("") string)) :version "25.1") -(defcustom vc-git-log-switches t +(defcustom vc-git-log-switches nil "String or list of strings specifying switches for Git log under VC." - :type '(choice (const :tag "None" t) + :type '(choice (const :tag "None" nil) (string :tag "Argument String") (repeat :tag "Argument List" :value ("") string)) :version "28.1") @@ -1171,10 +1171,10 @@ If LIMIT is a revision string, use it as an end-revision." (when shortlog `("--graph" "--decorate" "--date=short" ,(format "--pretty=tformat:%s" - (car vc-git-root-log-format)) - "--abbrev-commit")) - (vc-switches 'git 'log) - (when (numberp limit) + (car vc-git-root-log-format)) + "--abbrev-commit")) + vc-git-log-switches + (when (numberp limit) (list "-n" (format "%s" limit))) (when start-revision (if (and limit (not (numberp limit))) |