Re: [PATCH] Added --mirror-all to git-fetch.
From: Petr Baudis <hidden>
Date: 2016-06-15 22:42:41
Dear diary, on Wed, Sep 20, 2006 at 06:21:45PM CEST, I got a letter where Shawn Pearce [off-list ref] said that...
quoted
quoted
combined with set of packs with staggered spans to help commit walkers Pasky talked about quite a while ago).Yes, this is certainly one of things I would like to implement at repo.or.cz.Borrowing your line: Hmm, I think I've missed this, I must look that in the archive. :-)
I've proposed something long time ago in [ref]. Dear diary, on Wed, Sep 20, 2006 at 07:31:26PM CEST, I got a letter where Shawn Pearce [off-list ref] said that...
Junio C Hamano [off-list ref] wrote:quoted
Shawn Pearce [off-list ref] writes:quoted
Originally I gave Pasky a one-liner on #git: git fetch --force origin $(git ls-remote origin \ | awk '{if(!/\^{}$/){print $2":"$2}}')Which sounds a very sane thing to do, especially given git is designed to be scripted this way.Exactly. So I'm not sure why he was against it. After all he must have some script that's looping over all mirrored repositories and invoking git fetch in them. :-)
Basically, I imagined that what I wanted would be very close or identical to git fetch --all (or whatever you call it, just doing it with .git/refs/remotes) which I think should certainly be supported without funny awk pipes. ;-) -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)