git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [StGIT PATCH] Forbid the "series --all --short" combination.
@ 2007-07-02 19:47 Yann Dirson
  0 siblings, 0 replies; only message in thread
From: Yann Dirson @ 2007-07-02 19:47 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git

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(-)

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 = []

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-02 19:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 19:47 [StGIT PATCH] Forbid the "series --all --short" combination Yann Dirson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).