Thread (7 messages) flat view 7 messages, 4 authors, 2016-06-15

Re: [PATCH] [PATCH] git-mirror - exactly mirror another repository

From: Petr Baudis <hidden>
Date: 2016-06-15 22:43:07

On Fri, Apr 27, 2007 at 04:47:07AM CEST, A Large Angry SCM wrote:
It would be nice if this had an option to not mirror HEAD and another 
option to map the refs from (/ref/[^/])/(.*) to /ref/\1/${repo_path}/\2.
When I try to guess why you want this, I think this is just saying "it
would be nice if this was part of git-fetch and if git-fetch actually
did this automagically by default". Because when you clone a given
repository with all its branches, you are naturally interested not only
in the snapshot of the branch set at the point of the clone but more
likely just want "anytime whatever branches are over there". So when
fetching a * refspec it's natural to look for new branches and fetch
them too; and if you do that, it should be pretty easy to also (probably
optionally) remove stale branches.

But heck, maybe with all the nifty fetch--tools git-fetch is already
doing it. But there seems to be basically zero documentation, the code
is not that easy to follow and it's too late for me to be decyphering it
now... 

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help