X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=sync-all;h=a2c6ab91684b81d2572aa5ff248e754f2920702b;hp=c4ecfa3d4e9b70b7d5f06657b9fcccf7811b308a;hb=1844c3c0804cac9b3e7c39500e47d75fbdc3a3ff;hpb=ef344a11a5d48f2eccf07fa4dce8e62879e6ff1e diff --git a/sync-all b/sync-all index c4ecfa3..a2c6ab9 100755 --- a/sync-all +++ b/sync-all @@ -296,13 +296,16 @@ sub scmall { # Hack around 'darcs whatsnew' failing if there are no changes $ignore_failure = 1; } + elsif ($command =~ /^commit$/) { + @scm_args = ("commit"); + # git fails if there is nothing to commit, so ignore failures + $ignore_failure = 1; + } elsif ($command =~ /^(?:pus|push)$/) { @scm_args = "push"; - $want_remote_repo = 1; } elsif ($command =~ /^(?:pul|pull)$/) { @scm_args = "pull"; - $want_remote_repo = 1; # Q: should we append the -a argument for darcs repos? } elsif ($command =~ /^(?:g|ge|get)$/) { @@ -353,6 +356,11 @@ sub scmall { @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"; } @@ -394,6 +402,7 @@ What do you want to do? Supported commands: * whatsnew + * commit * push * pull * get, with options: @@ -406,6 +415,7 @@ Supported commands: * remote add * remote rm * remote set-url [--push] + * grep Available package-tags are: END