From: Petr Baudis Date: Wed, 20 Sep 2006 18:29:54 GMT Subject: Re: [PATCH] Added --mirror-all to git-fetch. 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 said that... > > > 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 said that... > Junio C Hamano wrote: > > Shawn Pearce 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