Commit 8ab81f06 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-show-refs-popup: add --sort= option

parent 22ad64c5
......@@ -25,8 +25,12 @@ Changes since v2.8.0
* The environment variable `INSIDE_EMACS' is now set when calling git.
* The `--gpg-sign=' option is now also available from the revert
popup.
* The `--gpg-sign=' option is now available from the revert popup
also.
* The `--sort=' option is now available from the show-refs popup.
(Use "C-u y" to show the popup instead of invoking its default
action as "y" does.)
Fixes since v2.8.0
------------------
......
......@@ -873,7 +873,8 @@ Type \\[magit-reset] to reset HEAD to the commit at point.
(?N "Not merged to master" "--no-merged=master"))
:options '((?c "Contains" "--contains=" magit-read-branch-or-commit)
(?m "Merged" "--merged=" magit-read-branch-or-commit)
(?n "Not merged" "--no-merged=" magit-read-branch-or-commit))
(?n "Not merged" "--no-merged=" magit-read-branch-or-commit)
(?s "Sort" "--sort=" magit-read-ref-sort))
:actions '((?y "Show refs, comparing them with HEAD"
magit-show-refs-head)
(?c "Show refs, comparing them with current branch"
......@@ -883,6 +884,12 @@ Type \\[magit-reset] to reset HEAD to the commit at point.
:default-action 'magit-show-refs-head
:use-prefix 'popup)
(defun magit-read-ref-sort (prompt initial-input)
(magit-completing-read prompt
'("-committerdate" "-authordate"
"committerdate" "authordate")
nil nil initial-input))
;;;###autoload
(defun magit-show-refs-head (&optional args)
"List and compare references in a dedicated buffer.
......
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