From f26ae162bcc933ecba26dad25242b6217b15d772 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 14 Oct 2012 21:48:51 +0200 Subject: [PATCH] gitconfig: Update alias rp to run in parallel. --- gitconfig.m4 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gitconfig.m4 b/gitconfig.m4 index bf2a060..fc38d37 100644 --- a/gitconfig.m4 +++ b/gitconfig.m4 @@ -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. -- 2.45.2