Re: Monotone workflow compared to Git workflow ( was RE: Git vs Monotone)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Craig L. Ching <cching@...>
Cc: <sverre@...>, Git Mailinglist <git@...>
Date: Thursday, July 31, 2008 - 4:09 pm

On Thu, 31 Jul 2008, Craig L. Ching wrote:

Sure, if you want to keep the build tree around, you would probably not 
use branches. 

But yes, then you'd likely do "git clone -s" with some single "common 
point" or use "git worktree". And even if you don't use "-s", you should 
_still_ effectively share at least all the old history (which tends to be 
the bulk) thanks to even a default "git clone" will just hardlink the 
pack-files.

So literally, if you do

	git clone <cntral-repo-over-network> <local>

and then do

	git clone <local> <otherlocal>
	git clone <local> <thirdlocal>

then all of those will all share the initial pack-file on-disk. Try it.

(You may then want to edit the "origin" branch info in the .git/config to 
point to the network one etc, of course).

Oh, and to make sure I'm not lying I actually did test this, but I also 
noticed that "git clone" no longer marks the initial pack-file with 
"keep", so it looks like "git gc" will then break the link. That's sad. I 
wonder when that changed, or maybe I'm just confused and it never did.

Junio?

		Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git vs Monotone, Sverre Rabbelier, (Thu Jul 31, 2:13 pm)
Re: Git vs Monotone, Sverre Rabbelier, (Fri Aug 1, 3:23 am)
Re: Git vs Monotone, Daniel Barkalow, (Fri Aug 1, 2:00 pm)
Re: Git vs Monotone, Theodore Tso, (Thu Jul 31, 3:24 pm)
Re: Git vs Monotone, Linus Torvalds, (Thu Jul 31, 3:17 pm)
Re: Monotone workflow compared to Git workflow ( was RE: Git..., Linus Torvalds, (Thu Jul 31, 4:09 pm)
RE: Git vs Monotone, Craig L. Ching, (Thu Jul 31, 3:28 pm)
RE: Git vs Monotone, Linus Torvalds, (Thu Jul 31, 3:52 pm)
RE: Git vs Monotone, Blum, Robert, (Thu Jul 31, 4:42 pm)
Re: Git vs Monotone, Robin Rosenberg, (Sun Aug 10, 6:15 pm)
Re: Git vs Monotone, Junio C Hamano, (Thu Jul 31, 4:24 pm)
Re: Git vs Monotone, Felipe Contreras, (Sat Aug 23, 3:23 pm)
Re: Git vs Monotone, Linus Torvalds, (Thu Jul 31, 4:30 pm)
Re: Git vs Monotone, Jeff King, (Thu Jul 31, 3:02 pm)
Re: Git vs Monotone, Sverre Rabbelier, (Thu Jul 31, 3:19 pm)
Re: Git vs Monotone, Jeff King, (Thu Jul 31, 4:32 pm)
RE: Git vs Monotone, Craig L. Ching, (Thu Jul 31, 3:11 pm)
Re: Git vs Monotone, Stephen R. van den Berg, (Thu Jul 31, 2:33 pm)
Re: Git vs Monotone, Petr Baudis, (Thu Jul 31, 2:52 pm)