diff options
Diffstat (limited to 'third_party/git/builtin/show-branch.c')
-rw-r--r-- | third_party/git/builtin/show-branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/git/builtin/show-branch.c b/third_party/git/builtin/show-branch.c index 35d7f51c236d..8c90cbb18f07 100644 --- a/third_party/git/builtin/show-branch.c +++ b/third_party/git/builtin/show-branch.c @@ -536,7 +536,7 @@ static void append_one_rev(const char *av) append_ref(av, &revkey, 0); return; } - if (strchr(av, '*') || strchr(av, '?') || strchr(av, '[')) { + if (strpbrk(av, "*?[")) { /* glob style match */ int saved_matches = ref_name_cnt; |