show-branch: handle [] globs as well.
Earlier only '?' and '*' signalled the command that what the user has given is a glob pattern. This prevented us to say: $ git show-branch 'v0.99.[0-3]' Now we notice '[' as well, so the above would work. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jan 11, 2006 at 00:20 UTC
87758f975b04233ba058750f7ea8ce63bb67297f
1 file changed
+1
-1
show-branch.c
+1
-1
@@ -492,7 +492,7 @@ static void append_one_rev(const char *av)
492
append_ref(av, revkey);
493
return;
494
}
495
- if (strchr(av, '*') || strchr(av, '?')) {
495
+ if (strchr(av, '*') || strchr(av, '?') || strchr(av, '[')) {
496
/* glob style match */
497
int saved_matches = ref_name_cnt;
498
match_ref_pattern = av;