Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upHighlight diffs in duplicated code #57
Comments
|
Yeah, I actually realized this and modified the text :) The new idea would be just a highlight on the literal/identifier that is not in common between the multiple chunks. Would that be better? |
The link is broken for me
But for N=2 such a diff would be extremely useful, it can work the way it works now by default, yet resort to display diffs for N=2 if an explicit command line argument is used? Now I have to pipe the output into vim, copy/paste the chunks by hand into temporary files and run vimdiff on them, because I don't know of a better way. |

Would be nice to highlight the identifiers/literals that are the only difference between the snippets, when one uses the
-Ior-Loptions, in a similar manner to a color diff.They would be helpful in refactoring since I'd have an hint on what should be a parameter of the newly created function.
Have you thought about it?