summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-04-01 15:03:27 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-04-01 15:03:27 +0100
commit0cb84f30414275484a23fffeb9d4db1f54808d4f (patch)
tree45e6feac8523737faca55388c7aa48bec027e5c6 /sync-all
parentd94579a594823b44334e81f0eb38e9a45945796d (diff)
downloadhaskell-0cb84f30414275484a23fffeb9d4db1f54808d4f.tar.gz
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)
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all8
1 files changed, 8 insertions, 0 deletions
diff --git a/sync-all b/sync-all
index 7bb8016354..d89e43954f 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:
* --<package-tag>
* --complete
* --partial
+ * fetch
* send
* set-origin
+ * new
Available package-tags are:
END