...
Subversion Directory | GitHub Repository | Status |
---|---|---|
fedora | github.com/fcrepo/fcrepo | |
services/diringest | github.com/fcrepo/diringest | |
services/genericsearch | github.com/fcrepo/gsearch | |
services/oaiprovider | github.com/fcrepo/oaiprovider | |
services/sipcreator | github.com/fcrepo/sipcreator | |
utilities/ | github.com/fcrepo/migration-2to3 | |
...
No Format |
---|
git tag -d `git tag|grep -v 3.[34]`
git branch -D maintenance-2.2 fcrepo-579 fcrepo-586 |
Find the id of the 3.3 tagged commit and parent:
No Format |
---|
export lastid=`git show v3.3|grep commit^commit|sed 's/...... \(.*\)$/\1/'` export parentid=`git show $lastid^|grep commit^commit|sed 's/...... \(.*\)$/\1/'` |
...
No Format |
---|
git reflog expire --expire=0 --all git repack -ad git prune |
Find the new id of the 3.3 tagged commit (now the root commit of this repository):
No Format |
---|
export lastid=`git show v3.3|grep ^commit|sed 's/...... \(.*\)$/\1/'` |
5. Separate Ancient History (fcrepo-before33)
...
No Format |
---|
git tag -d `git tag|grep 3.[34]` git branch -D `git branch | grep -v master \ |grep -v maintenance-3.42.2 | grep -v fcrepo-579 \ |grep -v fcrepo-586` git reset --hard $parentid git gc --prune=now |
...
No Format |
---|
cp ../5.ancient-history/.git/objects/pack/* \ .git/objects/pack |
Create the graft:
No Format |
---|
echo $lastid $parentid > .git/info/grafts |
Copy historic tags and branches with the following content (where $lastid and $parentid are the actual values set previously):
No Format |
---|
$lastid $parentidcat ../5.ancient-history/.git/packed-refs >> .git/packed-refs |
Test it (all history, including old tags and branches, should be visible):
No Format |
---|
gitk --all |
...