From: Simon Marlow Date: Fri, 1 Apr 2011 14:03:27 +0000 (+0100) Subject: add "./sync-all fetch" and "./sync-all new" X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=0cb84f30414275484a23fffeb9d4db1f54808d4f add "./sync-all fetch" and "./sync-all new" ./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) --- diff --git a/sync-all b/sync-all index 7bb8016..d89e439 100755 --- 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: * -- * --complete * --partial + * fetch * send * set-origin + * new Available package-tags are: END