On Wed, Jul 09, 2008 at 12:18:41PM +0200, Sverre Rabbelier <alturin@gmail.com> wrote:
What I did squashing fixes regularly, but I keep a 'history' branch
where I always reference to the old HEAD, so others can still have a
look at the individual commits.
It's like:
$ cat rebase-builtin-merge.sh
#!/bin/sh -e
[ -n "$*" ]
old_head=$(git rev-parse HEAD)
git rebase $*
git update-ref refs/heads/rebase-history \
$(echo "Rebased with 'git rebase $*'" | \
git commit-tree HEAD^{tree} -p rebase-history -p $old_head -p HEAD)
It will not work properly if you get conflicts, but you got the idea.