]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
gitconfig: Update alias rp to run in parallel.
authorSimon Ruderich <simon@ruderich.org>
Sun, 14 Oct 2012 19:48:51 +0000 (21:48 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 14 Oct 2012 19:48:51 +0000 (21:48 +0200)
gitconfig.m4

index bf2a060796b6afa5a16d002fa6f48b651055aae2..fc38d37a9c1ac4b1d12ae1ed6f8d066ecd529b8e 100644 (file)
@@ -89,8 +89,13 @@ include(../lib.m4)
                     /^Please make sure you have the correct access rights$/d; \
                     /^and the repository exists\\.$/d;'"
        # Push to all remotes. Thanks to albel727 in #git on Freenode
-       # (2011-06-04 16:06 CEST) for the idea.
-       rp = ! git remote | xargs -L1 -I{} git push {}
+       # (2011-06-04 16:06 CEST) for the idea. Modified to push in parallel
+       # and to strip unnecessary output.
+       rp = "! git remote \
+             | xargs -d '\\n' -n1 -P0 git push 2>&1 \
+             | sed '/^$/d; \
+                    /^Please make sure you have the correct access rights$/d; \
+                    /^and the repository exists\\.$/d;'"
        ## Patches.
        fp  = format-patch
        ## Maintenance.