From: Johan Tibell Date: Wed, 6 Apr 2011 09:39:29 +0000 (+0200) Subject: Add 'sync-all grep' X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=78946b2d0699f9b4a2b729a4a4bdd1e1c0ab778a;ds=sidebyside Add 'sync-all grep' --- diff --git a/sync-all b/sync-all index caaed50..bd32e46 100755 --- a/sync-all +++ b/sync-all @@ -354,6 +354,11 @@ sub scmall { @scm_args = ("remote", "set-url", $branch_name, $path); } } + elsif ($command =~ /^grep$/) { + @scm_args = ("grep"); + # Hack around 'git grep' failing if there are no matches + $ignore_failure = 1; + } else { die "Unknown command: $command"; } @@ -407,6 +412,7 @@ Supported commands: * remote add * remote rm * remote set-url [--push] + * grep Available package-tags are: END