Re: Automatically remote prune
- From
Petr Baudis <pasky@suse.cz>
- Date
- Nov 6, 2009, 10:31 UTC
- Message-ID
- <20091106103100.GG17748@machine.or.cz>
- In-Reply-To
- <76718490911051638w7cd5306bx65ed8d9ac525d2c3@mail.gmail.com>
On Thu, Nov 05, 2009 at 07:38:39PM -0500, Jay Soffian wrote:
Show 13 quoted lines
> On Thu, Nov 5, 2009 at 7:17 PM, Petr Baudis <pasky@suse.cz> wrote: > > On Thu, Nov 05, 2009 at 06:09:03PM -0500, Jay Soffian wrote: > >> Actually, mirror mode applies to push only. Unless I'm missing > >> something obvious. > > > > Perhaps you are, mirror mode applies to fetch as well; that's how e.g. > > repo.or.cz mirror mode is done currently. > > Can you please be more specific? There is no mention of mirror in > builtin-fetch.c, only builtin-push.c. Further, the docs for > "remote.<name>.mirror" indicate it's a push option only. > > So please explain what you mean by "that's how repo.or.cz mirror mode is done".
Ok, I got a bit confused there. :-) For fetches, it just sets up the refspec to point to main namespace instead of refs/remote/, of course it doesn't use the remote.*.mirror config. I'm not sure what Junio meant by the change being easy, seeing that push uses a technical trick in send-pack that doesn't seem to be straightforwardly applicable to fetch... but I don't know this part of code too well.
-- Petr "Pasky" Baudis A lot of people have my books on their bookshelves. That's the problem, they need to read them. -- Don Knuth