
Hi Ben, On 2013-12-10 at 17:53:23 +0100, Ben Gamari wrote:
If the old commit IDs are really needed, one would think it wouldn't be too hard to write them into the commit message while rewriting history. That way you could at least `git log --grep` IIRC.
Good idea, that's quite easy actually, I just need to perform
git filter-branch \
--msg-filter 'cat - && echo && echo "(original commit: [$GIT_COMMIT/testsuite])"'
as the first rewrite step (so that the $GIT_COMMIT variable still points
to the original commit hash ids), and then the imported commits will
look like e.g.
,----
| commit afe483f9b9e0eadda178f9f6786d835ea7b8395c
| Author: Joachim Breitner