I have a situation where I have two repository histories that have been duplicated and mangled (via interaction and migration around SVN--not my choice). I have both repositories as remotes in the same temporary maintenance repository. They share a few hundred commits worth of history, and then the "old" one continues for a few dozen more on a few branches. I need to fast-forward the "new" tree up to the state of the old one. Because of the mangling however, despite having identical content, they are not recognised as the same tree.
I would like a way to tell git "These two commits are identical, despite having different authors" (author ID was confused in translation). If possible, I would then really like if it could traverse the two remote trees and make that association for every node with identical content. This would mean I could then manually mark "commit 1" on both, and have it do the rest. Otherwise I would need to manually mark the root of every divergence (wouldn't be too bad, but would prefer not to).
I tried using graft points, which is nearly what I want-- gitk shows what I want, but when I pushed it back to the main (new) repository, it dragged along the couple-hundred duplicate commits. It's also a bit annoying to do, since I have to do it for a not-yet-merged child node.
I found https://stackoverflow.com/a/973403/372757 , and think that it will work: I will merely need to rebase the old commits onto the new repository, once for each branch.
None the less, I would still like to know if my original request is possible.