From b4f656f00412360441dfe7e41c9733a9ca547015 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Tue, 12 Dec 2006 22:07:17 +0000 Subject: [PATCH] Allow the mail command to send unapplied patches as well Signed-off-by: Catalin Marinas --- contrib/stgit-completion.bash | 2 +- stgit/commands/mail.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/stgit-completion.bash b/contrib/stgit-completion.bash index 8c50cbc7..1474b4b3 100644 --- a/contrib/stgit-completion.bash +++ b/contrib/stgit-completion.bash @@ -194,7 +194,7 @@ _stg () export) _stg_patches $command _applied_patches ;; files) _stg_patches $command _all_patches ;; log) _stg_patches $command _all_patches ;; - mail) _stg_patches $command _applied_patches ;; + mail) _stg_patches $command _all_patches ;; pick) _stg_patches $command _unapplied_patches ;; refresh)_stg_patches_options $command _applied_patches "-p --patch" ;; rename) _stg_patches $command _all_patches ;; diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py index 5d71657e..fe44bc9d 100644 --- a/stgit/commands/mail.py +++ b/stgit/commands/mail.py @@ -480,7 +480,8 @@ def func(parser, options, args): if options.all: patches = applied elif len(args) >= 1: - patches = parse_patches(args, applied) + unapplied = crt_series.get_unapplied() + patches = parse_patches(args, applied + unapplied, len(applied)) else: raise CmdException, 'Incorrect options. Unknown patches to send' -- 2.11.4.GIT