Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Avoid 'local uncommitted change' errors later

No Format
git status

4. Separate Recent History (fcrepo)

Use a copy of the result of the previous step:

...

No Format
export lastid=86b96dec0108af8bc160b84f24276962e0c4e2d5
export parentid=100891ba5fd0f1d3869236047867462355e9f1b1

git filter-branch --parent-filter "sed -e 's/-p $parentid//'" \
--tag-name-filter cat -- --all ^$parentid

git for-each-ref --format='%(refname)' refs/original \
| while read ref; do git update-ref -d "$ref"; done

git reflog expire --expire=0 --all
git repack -ad
git prune

5. Separate Ancient History (fcrepo-before33)

Use a copy of the result of step 3:

...

No Format
git tag -d `git tag|grep 3.[34]`
git branch -D maintenance-3.4
git reset --hard (parent of lastid)
git gc --prune=now
git prune

6. Graft Test

Use a copy of the result of step 4:

No Format
cp -a 4.recent-history 6.graft-test
cd 6.graft-test

Copy and pack and index files from fcrepo-before33:

No Format
cp ../5.ancient-history/.git/objects/pack/* \
.git/objects/pack

Create .git/info/grafts with the following content (where $lastid and $parentid are the actual values set previously):

No Format
$lastid $parentid

Test it (all history should be visible):

No Format
gitk --all