Merge branch 'master' of /home/simonmar/ghc-git/.
authorSimon Marlow <marlowsd@gmail.com>
Wed, 6 Apr 2011 10:27:03 +0000 (11:27 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 6 Apr 2011 10:27:03 +0000 (11:27 +0100)
1  2 
sync-all

diff --combined sync-all
+++ b/sync-all
@@@ -262,6 -262,7 +262,6 @@@ sub scmall 
      }
  
      push(@args, @_);
 -    print "args: @args\n";
  
      for $line (@packages) {
  
                      @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";
              }
@@@ -406,6 -412,7 +411,7 @@@ Supported commands
   * remote add <branch-name>
   * remote rm <branch-name>
   * remote set-url [--push] <branch-name>
+  * grep
  
  Available package-tags are:
  END