On Tue, 25 Jan 2011, Curtis Olson wrote:

> Once you get it all figured out, please let us know how, so we can get setup
> correctly too. :-)

I'm not sure this counts as figuring it all out.. :)

anders@sleipner:/opt/FlightGear$ du -sk fgdata
7930604 fgdata
anders@sleipner:/opt/FlightGear$ git clone -l fgdata fgdata-test
Cloning into fgdata-test...
done.
anders@sleipner:/opt/FlightGear$ du -sk fgdata fgdata-test/
7930604 fgdata
4614988 fgdata-test/

After checking out the 2.2.0 branch in fgdata-test:

anders@sleipner:/opt/FlightGear$ du -sk fgdata fgdata-test
7934896 fgdata
691112  fgdata-test

A drawback is that the second clone fetches from the first so one would 
need to keep the first uptodate to get the latest commits in the second 
clone. It might be possible to set up fetch and branch tracking to avoid 
that. I'm not sure what happens if both clones fetch new commits from 
gitorious - probably that will lead to duplicate files (fetching from the 
first to the second local repro hopefully doesn't).

Both repositories need to be on the same partition since 
filesystem hardlinks are used.

The use of hardlinks also open up for some confusing du results - 
depending on in which order the files are attributed to directories. :)

anders@sleipner:/opt/FlightGear$ du -sk fgdata/.git fgdata-test/.git
3252104 fgdata/.git
4992    fgdata-test/.git
anders@sleipner:/opt/FlightGear$ du -sk fgdata-test/.git fgdata/.git
3246288 fgdata-test/.git
10808   fgdata/.git


Cheers,

Anders
-- 
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://www.gidenstam.org/FlightGear/

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to