aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Hållberg <gustav@gmail.com>2010-04-29 17:20:45 +0200
committerGustav Hållberg <gustav@gmail.com>2010-04-30 00:28:34 +0200
commit8f489f41f8ffe6e06254cefc5b352610df06cbeb (patch)
tree8917a0a7614800f9d54d680575a9e4d9fa1c544f
parentf9533abf9cc6124174d4f401de63153ab7d2bccf (diff)
downloadstgit-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.el3
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