chiark / gitweb /
Fix "show" to allow multiple branch:patch arguments
authorCatalin Marinas <catalin.marinas@gmail.com>
Sun, 19 Oct 2008 08:16:06 +0000 (09:16 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Sun, 19 Oct 2008 08:16:34 +0000 (09:16 +0100)
Ranges aren't allow to contain the branch:patch format but individual
patches can be specified this way since they are treated as individual
commits.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/show.py

index 9a1f48b5bdec634f02f280506010e6e17f0e79d0..3887b739148b230178485e4c13c38aac569d6008 100644 (file)
@@ -52,8 +52,8 @@ def func(parser, options, args):
     elif len(args) == 0:
         patches = ['HEAD']
     else:
-        if len(args) == 1 and args[0].find('..') == -1:
-            # single patch or commit id
+        if len(args) == 1 or args[0].find('..') == -1:
+            # single patch or one/more commit ids
             patches = args
         else:
             applied = crt_series.get_applied()