Commit f795f1a6 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-log-select-arguments: add --graph to default value

And stop hard-coding `--graph' in `magit-commit-squash-internal'.
This makes it possible for users NOT to use `--graph' if that has
negative effects on performance.  On the other hand it also means
that all uses of `magit-log-select' now show the graph by default,
but the latter might actually be beneficial too.

Re #3559.
parent 6361385c
......@@ -295,8 +295,7 @@ depending on the value of option `magit-commit-squash-confirm'."
(list "--autosquash" "--autostash")
"" "true" nil t)))
(format "Type %%p on a commit to %s into it,"
(substring option 2))
nil nil (list "--graph"))
(substring option 2)))
(when magit-commit-show-diff
(let ((magit-display-buffer-noselect t))
(apply #'magit-diff-staged nil (magit-diff-arguments)))))))
......@@ -175,7 +175,7 @@ This is useful if you use really long branch names."
;;;; Select Mode
(defcustom magit-log-select-arguments '("-n256" "--decorate")
(defcustom magit-log-select-arguments '("-n256" "--graph" "--decorate")
"The log arguments used in `magit-log-select-mode' buffers."
:package-version '(magit . "2.3.0")
:group 'magit-log
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