]> iEval git - filters.git/commitdiff
support globbing to match things like git-*
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 25 Oct 2007 08:28:28 +0000 (04:28 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 25 Oct 2007 08:28:28 +0000 (04:28 -0400)
fanboy

diff --git a/fanboy b/fanboy
index 743a004641e22fc183d7cd2dc4a17c091d7f4369..32fe7e396f7f06b3279b5a4ff547c876cbbf1725 100755 (executable)
--- 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="";
This page took 0.028568 seconds and 4 git commands to generate.