X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=sync-all;h=09130c0e52010a3f000f887f586bea1c3c22a34f;hp=d20f4e7ff6f05a439e4ed7c700c9f869d054ada8;hb=b1001917414ef857acaf864150f8b8fdec8bbfbe;hpb=91bb651a14f8fe4163394f26af50fb8f76fa0607 diff --git a/sync-all b/sync-all index d20f4e7..09130c0 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)$/) { @@ -358,6 +361,9 @@ sub scmall { # Hack around 'git grep' failing if there are no matches $ignore_failure = 1; } + elsif ($command =~ /^config$/) { + @scm_args = "config"; + } else { die "Unknown command: $command"; } @@ -399,6 +405,7 @@ What do you want to do? Supported commands: * whatsnew + * commit * push * pull * get, with options: @@ -412,6 +419,7 @@ Supported commands: * remote rm * remote set-url [--push] * grep + * config Available package-tags are: END