about summary refs log tree commit diff
path: root/third_party/git/builtin/show-branch.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/builtin/show-branch.c')
-rw-r--r--third_party/git/builtin/show-branch.c2
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 35d7f51c23..8c90cbb18f 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;