`magit-refresh-log-buffer' can now take more than one (git commandline) argument.
This commit is contained in:
parent
d589942f5a
commit
29395e0d46
1 changed files with 4 additions and 3 deletions
7
magit.el
7
magit.el
|
@ -3091,7 +3091,8 @@ Prefix arg means justify as well."
|
||||||
,style
|
,style
|
||||||
,@(if magit-have-decorate (list "--decorate=full"))
|
,@(if magit-have-decorate (list "--decorate=full"))
|
||||||
,@(if magit-have-graph (list "--graph"))
|
,@(if magit-have-graph (list "--graph"))
|
||||||
,args "--"))))
|
,@args
|
||||||
|
"--"))))
|
||||||
|
|
||||||
(defun magit-log (&optional arg)
|
(defun magit-log (&optional arg)
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
|
@ -3099,7 +3100,7 @@ Prefix arg means justify as well."
|
||||||
(magit-read-rev-range "Log" "HEAD")
|
(magit-read-rev-range "Log" "HEAD")
|
||||||
"HEAD"))
|
"HEAD"))
|
||||||
(topdir (magit-get-top-dir default-directory))
|
(topdir (magit-get-top-dir default-directory))
|
||||||
(args (magit-rev-range-to-git range)))
|
(args (list (magit-rev-range-to-git range))))
|
||||||
(switch-to-buffer "*magit-log*")
|
(switch-to-buffer "*magit-log*")
|
||||||
(magit-mode-init topdir 'log #'magit-refresh-log-buffer range
|
(magit-mode-init topdir 'log #'magit-refresh-log-buffer range
|
||||||
"--pretty=oneline" args)))
|
"--pretty=oneline" args)))
|
||||||
|
@ -3110,7 +3111,7 @@ Prefix arg means justify as well."
|
||||||
(magit-read-rev-range "Long log" "HEAD")
|
(magit-read-rev-range "Long log" "HEAD")
|
||||||
"HEAD"))
|
"HEAD"))
|
||||||
(topdir (magit-get-top-dir default-directory))
|
(topdir (magit-get-top-dir default-directory))
|
||||||
(args (magit-rev-range-to-git range)))
|
(args (list (magit-rev-range-to-git range))))
|
||||||
(switch-to-buffer "*magit-log*")
|
(switch-to-buffer "*magit-log*")
|
||||||
(magit-mode-init topdir 'log #'magit-refresh-log-buffer range
|
(magit-mode-init topdir 'log #'magit-refresh-log-buffer range
|
||||||
"--stat" args)))
|
"--stat" args)))
|
||||||
|
|
Loading…
Reference in a new issue