X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=gitconfig.m4;h=bf2a060796b6afa5a16d002fa6f48b651055aae2;hb=0e95cf3e5e4eca9e98f7349af11d1e3fbd72aac5;hp=451951049df82d3d29a7d74e5faf91a4bf8e6c69;hpb=663d695b625acc7dd219664b2b41459be89e4958;p=config%2Fdotfiles.git 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 {}