From: Catalin Marinas Date: Mon, 19 May 2008 21:54:27 +0000 (+0100) Subject: Allow export to write unapplied files as well X-Git-Tag: v0.14.3~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/340793d1f7dc889720ceef3271ca58187474d110?hp=-c Allow export to write unapplied files as well This was an artificial limit which upset many people (including me). Signed-off-by: Catalin Marinas --- 340793d1f7dc889720ceef3271ca58187474d110 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