From 78946b2d0699f9b4a2b729a4a4bdd1e1c0ab778a Mon Sep 17 00:00:00 2001 From: Johan Tibell Date: Wed, 6 Apr 2011 11:39:29 +0200 Subject: [PATCH] Add 'sync-all grep' --- sync-all | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 1.7.10.4