Commit 86309efb authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

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.
parent af4cccb8
Pipeline #11047 failed with stages
in 183 minutes and 35 seconds
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment