Re: [PATCH] Added --mirror-all to git-fetch.
- From
Petr Baudis <pasky@suse.cz>
- Date
- Sep 20, 2006, 18:29 UTC
- Message-ID
- <20060920182953.GT8259@pasky.or.cz>
- In-Reply-To
- <20060920173126.GG23260@spearce.org>
Dear diary, on Wed, Sep 20, 2006 at 06:21:45PM CEST, I got a letter where Shawn Pearce <spearce@spearce.org> said that...
Show 9 quoted lines
> > > 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 <20051112135947.GC30496@pasky.or.cz>.
Dear diary, on Wed, Sep 20, 2006 at 07:31:26PM CEST, I got a letter where Shawn Pearce <spearce@spearce.org> said that...
Show 13 quoted lines
> Junio C Hamano <junkio@cox.net> wrote:
> > Shawn Pearce <spearce@spearce.org> writes:
> > > 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*',/((..)*)$/)