Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
show-branch: handle [] globs as well.
author
Junio C Hamano
<junkio@cox.net>
Wed, 11 Jan 2006 08:20:25 +0000
(
00:20
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 11 Jan 2006 23:36:07 +0000
(15:36 -0800)
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>
show-branch.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
2c817df
)
diff --git
a/show-branch.c
b/show-branch.c
index 15b1968781178c8aa939a79ed5a7f8fb363d181e..1935c448f4c50e8b9b4302162747a6a099dc718c 100644
(file)
--- a/
show-branch.c
+++ b/
show-branch.c
@@
-492,7
+492,7
@@
static void append_one_rev(const char *av)
append_ref(av, revkey);
return;
}
- if (strchr(av, '*') || strchr(av, '?')) {
+ if (strchr(av, '*') || strchr(av, '?')
|| strchr(av, '[')
) {
/* glob style match */
int saved_matches = ref_name_cnt;
match_ref_pattern = av;