summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorJohan Tibell <johan.tibell@gmail.com>2011-04-06 11:39:29 +0200
committerJohan Tibell <johan.tibell@gmail.com>2011-04-06 11:39:29 +0200
commit78946b2d0699f9b4a2b729a4a4bdd1e1c0ab778a (patch)
treed86403120693c862316d68beb42bfb46e5c5a09a /sync-all
parent72a2b6d88d34caf92eeefd86cc69cad86b77a79c (diff)
downloadhaskell-78946b2d0699f9b4a2b729a4a4bdd1e1c0ab778a.tar.gz
Add 'sync-all grep'
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all6
1 files changed, 6 insertions, 0 deletions
diff --git a/sync-all b/sync-all
index caaed50c84..bd32e46522 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 <branch-name>
* remote rm <branch-name>
* remote set-url [--push] <branch-name>
+ * grep
Available package-tags are:
END