From 0e95cf3e5e4eca9e98f7349af11d1e3fbd72aac5 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 14 Oct 2012 21:48:13 +0200 Subject: [PATCH] gitconfig: Update alias ru to run updates in parallel. --- gitconfig.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gitconfig.m4 b/gitconfig.m4 index 4519510..bf2a060 100644 --- a/gitconfig.m4 +++ b/gitconfig.m4 @@ -82,7 +82,12 @@ include(../lib.m4) t = tag p = push pu = push - ru = remote update + # Parallel git remote update. Also strips unnecessary output. + ru = "! git remote \ + | xargs -d '\\n' -n1 -P0 git remote update 2>&1 \ + | sed '/^$/d; \ + /^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 {} -- 2.45.2