diff options
author | Gustav Hållberg <gustav@gmail.com> | 2010-04-29 17:20:45 +0200 |
---|---|---|
committer | Gustav Hållberg <gustav@gmail.com> | 2010-04-30 00:28:34 +0200 |
commit | 8f489f41f8ffe6e06254cefc5b352610df06cbeb (patch) | |
tree | 8917a0a7614800f9d54d680575a9e4d9fa1c544f | |
parent | f9533abf9cc6124174d4f401de63153ab7d2bccf (diff) | |
download | stgit-8f489f41f8ffe6e06254cefc5b352610df06cbeb.tar.gz |
stgit.el: Make ! sort patches when building command line
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
-rw-r--r-- | contrib/stgit.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el index 906a75f..24d4759 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -2462,7 +2462,8 @@ If the command ends in an ampersand, run it asynchronously. When the command has finished, reload the stgit buffer." (interactive) (stgit-assert-mode) - (let* ((patches (stgit-patches-marked-or-at-point nil 'allow-committed)) + (let* ((patches (stgit-sort-patches + (stgit-patches-marked-or-at-point nil 'allow-committed))) (patch-names (mapcar 'symbol-name patches)) (hyphens (find-if (lambda (s) (string-match "^-" s)) patch-names)) (defaultcmd (if patches |