diff options
author | Simon Marlow <marlowsd@gmail.com> | 2011-04-01 15:03:27 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-04-01 15:03:27 +0100 |
commit | 0cb84f30414275484a23fffeb9d4db1f54808d4f (patch) | |
tree | 45e6feac8523737faca55388c7aa48bec027e5c6 /sync-all | |
parent | d94579a594823b44334e81f0eb38e9a45945796d (diff) | |
download | haskell-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-x | sync-all | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |