From 8f489f41f8ffe6e06254cefc5b352610df06cbeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gustav=20H=C3=A5llberg?= Date: Thu, 29 Apr 2010 17:20:45 +0200 Subject: [PATCH] stgit.el: Make ! sort patches when building command line MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Gustav HÃ¥llberg --- contrib/stgit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.0