On Tue, 25 Jan 2011, ThorstenB wrote:
> You'll also need to keep git from touching any _sources_, so maintain
> two sets of matching sources and their objects. Using two completely
> separate repos helps - or the "magic" feature to create two separate
> source checkouts from one repository, which James mentioned.
>
> Could some git guru (git-goroo? ;) ) enlighten me, on how I can create
> two checkouts from one repo? That would actually be very useful -
> especially now that fgdata is branched. I don't want to pull another
> fgdata repo... and I don't feel brave enough to switch fgdata branches,
> since its release branch is already stripped (=> switching affects
> thousands of files...).
I suspect the option --local to git clone might be useful.
I have not tried myself, though.
anders@sleipner:~$ git clone -h
usage: git clone [options] [--] <repo> [<dir>]
...
-l, --local to clone from a local repository
...
anders@sleipner:~$ git clone --help
...
OPTIONS
--local, -l
When the repository to clone from is on a local machine, this flag
bypasses the normal "git aware" transport mechanism and clones the
repository by making a copy of HEAD and everything under objects
and refs directories. The files under .git/objects/ directory are
hardlinked to save space when possible. This is now the default
when the source repository is specified with /path/to/repo syntax,
so it essentially is a no-op option. To force copying instead of
hardlinking (which may be desirable if you are trying to make a
back-up of your repository), but still avoid the usual "git aware"
transport mechanism, --no-hardlinks can be used.
...
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel