add "./sync-all fetch" and "./sync-all new"
authorSimon Marlow <marlowsd@gmail.com>
Fri, 1 Apr 2011 14:03:27 +0000 (15:03 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 1 Apr 2011 14:03:27 +0000 (15:03 +0100)
./sync-all fetch

  Fetches remote changes from the "origin" for each sub-repo.  Useful
  before "./sync-all new".

  (Runs 'git fetch origin' on all sub-repos.)

./sync-all new

  Lists the new patches relative to "origin" for each sub-repo.
  You probably want to './sync-all fetch' first.

  (Runs 'git log origin..' on all sub-repos)

sync-all

index 7bb8016..d89e439 100755 (executable)
--- a/sync-all
+++ b/sync-all
@@ -241,6 +241,12 @@ sub scmall {
             elsif ($command =~ /^set-origin$/) {
                 @scm_args = ("remote", "set-url", "origin", $path);
             }
+            elsif ($command =~ /^fetch$/) {
+                @scm_args = ("fetch", "origin");
+            }
+            elsif ($command =~ /^new$/) {
+                @scm_args = ("log", "origin..");
+            }
             else {
                 die "Unknown command: $command";
             }
@@ -333,8 +339,10 @@ Supported commands:
   * --<package-tag>
   * --complete
   * --partial
+ * fetch
  * send
  * set-origin
+ * new
 
 Available package-tags are:
 END