From: Catalin Marinas Date: Sun, 19 Oct 2008 08:16:06 +0000 (+0100) Subject: Fix "show" to allow multiple branch:patch arguments X-Git-Tag: v0.15-rc1~111 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/0f36eab20587b39314604decfa9f738130a19d0c Fix "show" to allow multiple branch:patch arguments 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 --- diff --git a/stgit/commands/show.py b/stgit/commands/show.py index 9a1f48b..3887b73 100644 --- a/stgit/commands/show.py +++ b/stgit/commands/show.py @@ -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()