Mountain-climbing addresses for code lines
ansuz.sooke.bc.ca
ansuz.sooke.bc.ca
It chains back through the diffs to find out who edited the line.
So to address the OP problem you could have a hash that was based on : Original Line number , diff id , diff id etc