Community
Participate
Working Groups
When I am using Eclipse to code review some git commits using its Java Compare view, I sometimes like to open the current version of the file to make some suggested changes to the lines of code I'm reviewing. What I currently do is go back to the History view, find the file in the changeset, right-click on the file and choose Open Workspace Version, and then either find the place by eye or use Ctrl+F to find some code that is on the current line, if it is a big file (I can't necessarily use line numbers because they might have changed since that commit). It would be useful to have a right-click menu option or something, to jump to the corresponding line in the workspace version of the file - if there was one. (Maybe jump to the nearest line that hadn't been deleted, if that line had been deleted since then but the file still existed.)
EGit got a "Open workspace version" context menu for the Compare view in the lastest 3.4 version. It will jump to the same line number that the text cursor/selection in the Compare view was in. As you mentioned, the line may have moved in the workspace as compared to the Compare view. In my experience it usually is not too far off, so most of the time it's easy to spot the line I was actually looking for. Could try the new EGit version and report back whether that helps enough in your use-cases?
[Batch change] Remove pre-3.7 Target Milestones If anyone on CC list is going to fix/implement this, please assign a new 3.7+ target milestone.