diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-03-02 23:07:20 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-02 23:07:20 (GMT) |
commit | ff41848e999fe89600ac0b669b59ad580401f451 (patch) | |
tree | bace34c637fb3dec1580d5e01820b4d9ef070e60 /builtin | |
parent | 4cbf1a0e220d12604afeec208ed18af0766077ac (diff) | |
parent | 2ce6d075fa35e4ea4a581c809eca3ad5631c9079 (diff) | |
download | git-ff41848e999fe89600ac0b669b59ad580401f451.zip git-ff41848e999fe89600ac0b669b59ad580401f451.tar.gz git-ff41848e999fe89600ac0b669b59ad580401f451.tar.bz2 |
Merge branch 'rs/micro-cleanups'
Code cleanup.
* rs/micro-cleanups:
use strpbrk(3) to search for characters from a given set
quote: use isalnum() to check for alphanumeric characters
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/show-branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/show-branch.c b/builtin/show-branch.c index 35d7f51..8c90cbb 100644 --- a/builtin/show-branch.c +++ b/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; |