{"thread":{"id":"3050","subject":"[PATCH - maint review] show-branch: handle [] globs as well.","startedAt":"2006-01-12T00:04:56Z","lastAt":"2006-01-12T00:04:56Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"14517","messageId":"7v64oql39z.fsf@assigned-by-dhcp.cox.net","threadId":"3050","inReplyTo":null,"subject":"[PATCH - maint review] show-branch: handle [] globs as well.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-01-12T00:04:56Z","receivedAt":"2006-01-12T00:04:56Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Earlier only '?' and '*' signalled the command that what the\nuser has given is a glob pattern.  This prevented us to say:\n\n\t$ git show-branch 'v0.99.[0-3]'\n\nNow we notice '[' as well, so the above would work.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n\n---\n * For 1.0.10 and 1.1.2\n\n show-branch.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n87758f975b04233ba058750f7ea8ce63bb67297f\ndiff --git a/show-branch.c b/show-branch.c\nindex 15b1968..1935c44 100644\n--- a/show-branch.c\n+++ b/show-branch.c\n@@ -492,7 +492,7 @@ static void append_one_rev(const char *a\n \t\tappend_ref(av, revkey);\n \t\treturn;\n \t}\n-\tif (strchr(av, '*') || strchr(av, '?')) {\n+\tif (strchr(av, '*') || strchr(av, '?') || strchr(av, '[')) {\n \t\t/* glob style match */\n \t\tint saved_matches = ref_name_cnt;\n \t\tmatch_ref_pattern = av;\n-- \n1.1.1-g8ecb\n"}]}