Bug 440556 - Jump to current line in workspace version of file from Java compare view
Summary: Jump to current line in workspace version of file from Java compare view
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 2.3   Edit
Hardware: PC Linux
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-28 09:56 EDT by Robin Green CLA
Modified: 2015-06-30 15:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Green CLA 2014-07-28 09:56:13 EDT
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.)
Comment 1 Konrad Kügler CLA 2014-07-28 16:18:46 EDT
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?
Comment 2 Mykola Nikishov CLA 2015-06-30 15:54:58 EDT
[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.