From 84cbfd03b1483609e1b9fdf8b8b4403533e17748 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 25 Oct 2007 04:28:28 -0400 Subject: [PATCH] support globbing to match things like git-* --- fanboy | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fanboy b/fanboy index 743a004..32fe7e3 100755 --- a/fanboy +++ b/fanboy @@ -2,10 +2,16 @@ if (! @ARGV) { @ARGV=qw(linus git linux rebase rebased merge merged cherry-pick - branch branched branches); + branch branched branches git-*); } -my $coolstuff=join("|", map { "\Q$_\E" } reverse sort @ARGV); +my $coolstuff=join("|", + map { + $_=quotemeta($_); + s/\\\*/.*/g; + s/\\\?/./g; + $_; + } reverse sort @ARGV); my $len=0; my $indent=""; -- 2.30.2