My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3228: Diff certain parts
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Project Member Reported by sbel...@google.com, Mar 5, 2015
Problem:
If there are changes, which require shoveling around lots of code, you may want to compare the moved code with the old code.
As an example look at https://gerrit-review.googlesource.com/#/c/65034/3
where code is moved from one method into a class. So there are lots of large chunks of code which are moved and due to the moving they are not diffed in the 5 color way, but show up as deleted and new code.

Possible solution:
You can select text the same way you do when commenting on a change. Instead of pressing 'c' for comment, you will press 'd' for diff and then you'll be asked to select another appropriate text section (which is most likely found on the other side of the screen). These 2 selections are then directly compared. 

It should be using the 5 color scheme, maybe it could be in a popup or overlay?
Sign in to add a comment

Powered by Google Project Hosting