threads / patch / 8817

patchForbid the "series --all --short" combination.

Subject: [StGIT PATCH] Forbid the "series --all --short" combination.

## tl;dr

One message between Jul 2, 2007 and Jul 2, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Yann Dirson· Jul 2, 2007, 19:47 UTC · lore

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 <ydirson@altern.org>
---
 stgit/commands/series.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Show changes to stgit/commands/series.py +3 −0
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 = []

← back to recent threads