{"thread":{"id":"8817","subject":"[StGIT PATCH] Forbid the \"series --all --short\" combination.","startedAt":"2007-07-02T19:47:48Z","lastAt":"2007-07-02T19:47:48Z","messageCount":1,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46269","messageId":"20070702194748.31124.16084.stgit@gandelf.nowhere.earth","threadId":"8817","inReplyTo":null,"subject":"[StGIT PATCH] Forbid the \"series --all --short\" combination.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-07-02T19:47:48Z","receivedAt":"2007-07-02T19:47:48Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"That combination would otherwise simply augment with hidden patches\nthe display we would have with --short, which does not seem useful,\nbut can be confusing.\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\n---\n\n stgit/commands/series.py |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\ndiff --git a/stgit/commands/series.py b/stgit/commands/series.py\nindex 0b3efe0..9e0b0ff 100644\n--- a/stgit/commands/series.py\n+++ b/stgit/commands/series.py\n@@ -109,6 +109,9 @@ def func(parser, options, args):\n     \"\"\"\n     global crt_series\n \n+    if options.all and options.short:\n+        raise CmdException, 'combining --all and --short is meaningless'\n+    \n     # current series patches\n     if options.invisible:\n         applied = unapplied = []\n"}]}