From: Yann Dirson Date: Fri, 13 Jul 2007 22:43:56 +0000 (+0100) Subject: Forbid the "series --all --short" combination. X-Git-Tag: v0.13~16 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/1f396835a4b17f50b90d6564899abb5d4a71082d?ds=inline Forbid the "series --all --short" combination. That combination would otherwise simply augment with hidden patches the display we would have with --short, which does not seem useful, but can be confusing. Signed-off-by: Yann Dirson --- diff --git a/stgit/commands/series.py b/stgit/commands/series.py index 0b3efe0..9e0b0ff 100644 --- a/stgit/commands/series.py +++ b/stgit/commands/series.py @@ -109,6 +109,9 @@ def func(parser, options, args): """ global crt_series + if options.all and options.short: + raise CmdException, 'combining --all and --short is meaningless' + # current series patches if options.invisible: applied = unapplied = []