git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Yann Dirson <ydirson@altern.org>
Date
Jul 2, 2007, 19:47 UTC
Message-ID
<20070702194748.31124.16084.stgit@gandelf.nowhere.earth>

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 = []
Message 1 of 1 in “Forbid the "series --all --short" combination.”
  1. Forbid the "series --all --short" combination.Yann Dirson, Jul 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.