From 340793d1f7dc889720ceef3271ca58187474d110 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Mon, 19 May 2008 22:54:27 +0100 Subject: [PATCH] Allow export to write unapplied files as well This was an artificial limit which upset many people (including me). Signed-off-by: Catalin Marinas --- contrib/stgit-completion.bash | 2 +- stgit/commands/export.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/stgit-completion.bash b/contrib/stgit-completion.bash index b3b23d4..8d49e21 100644 --- a/contrib/stgit-completion.bash +++ b/contrib/stgit-completion.bash @@ -249,7 +249,7 @@ _stg () # patch commands delete) _stg_patches $command _all_patches ;; edit) _stg_patches $command _applied_patches ;; - export) _stg_patches $command _applied_patches ;; + export) _stg_patches $command _all_patches ;; files) _stg_patches $command _all_patches ;; log) _stg_patches $command _all_patches ;; mail) _stg_patches $command _all_patches ;; diff --git a/stgit/commands/export.py b/stgit/commands/export.py index 9131729..4e52598 100644 --- a/stgit/commands/export.py +++ b/stgit/commands/export.py @@ -95,8 +95,9 @@ def func(parser, options, args): diff_flags = [] applied = crt_series.get_applied() + unapplied = crt_series.get_unapplied() if len(args) != 0: - patches = parse_patches(args, applied) + patches = parse_patches(args, applied + unapplied, len(applied)) else: patches = applied -- 2.11.0