Versions Compared

Key

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

...

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
export lastid=`git show v3.3|grep commit^commit|sed 's/...... \(.*\)$/\1/'`

...

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

...