Repository Reorganization Question

Herbert Valerio Riedel hvr at gnu.org
Tue Dec 10 21:42:16 UTC 2013


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 <mail at joachim-breitner.de>
| Date:   Mon Dec 9 15:40:20 2013 +0000
| 
|     Use -ddump-strsigs in tests/stranal/sigs
|     
|     because it is more reliable than the previous GHC plugin (no need to
|     support annotations etc.), plus it works nicely with "make accept".
|     
|     (original commit: [323cab22d65ea88410a607ef22db23198c03e305/testsuite])
`----

So if we want it that way, it's easily accomplished...

Cheers,
  hvr


More information about the ghc-devs mailing list