FlightGear Git: splitting FGData

Revision as of 08:07, 16 October 2011 by Gijs (Talk | contribs) (Created page with "Aircraft are split to seperate repositories, under the [https://gitorious.org/flightgear-aircraft FlightGear Aircraft] project at Gitorious. == How to split an aircraft == You n...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Revision as of 08:07, 16 October 2011 by Gijs (Talk | contribs) (Created page with "Aircraft are split to seperate repositories, under the [https://gitorious.org/flightgear-aircraft FlightGear Aircraft] project at Gitorious. == How to split an aircraft == You n...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Aircraft are split to seperate repositories, under the FlightGear Aircraft project at Gitorious.

How to split an aircraft

You need to have up-to-date fgdata to do this. There are two workflows that both do the trick:

Method 1

cd fgdata 
git subtree split -P Aircraft/737-300 -b 737-300
cd ../split-aircraft/737-300
git init
git fetch ../fgdata 737-300
git checkout -b master FETCH_HEAD
git push git@gitorious.org:flightgear-aircraft/737-300.git master

Method 2

(need to check this one)

cd fgdata
git clone --no-hardlinks /fgdata /737-300
git filter-branch --subdirectory-filter Aircraft/737-300 HEAD -- --all
git reset --hard
rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --aggressive --prune=now