Bug 512736 - No overwrite new file from history view to workspace
Summary: No overwrite new file from history view to workspace
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-26 10:14 EST by Nobody - feel free to take it CLA
Modified: 2017-03-01 06:24 EST (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 Nobody - feel free to take it CLA 2017-02-26 10:14:44 EST
Sometime i need copy new file from commit that not exist in workspace.

Now i can:
1) Create new file in workspace and compare file from commit to workspace.
2) Compare folder to commit and use overwrite command.

it would be great to be able to make it easier.

For example add "overwrite" command in context menu for some commit in history view.
Comment 1 Thomas Wolf CLA 2017-03-01 02:20:52 EST
What's wrong with "Open This Version" and then using "Save As..."?
Comment 2 Nobody - feel free to take it CLA 2017-03-01 04:19:16 EST
> What's wrong with "Open This Version" and then using "Save As..."?

I don't see this command.

  Git integration for Eclipse	4.6.0.201612231935-r	org.eclipse.egit.feature.group	Eclipse EGit


But if need select path this is not comfortable.
Need short command make this quicker and easier(if possible).
Comment 3 Thomas Wolf CLA 2017-03-01 06:01:25 EST
Which command?

"Open This Version" is in the context menu when you select a file in the history view (bottom right, where it shows the files changed in a commit).

Once that version is open in the editor, "Save As..." is in the global "File" menu.
Comment 4 Nobody - feel free to take it CLA 2017-03-01 06:24:41 EST
> Once that version is open in the editor, "Save As..." is in the global "File" menu.

I see. I thought that this command in the context menu.


This step is difficult for me.
I need every time select path. But path is known.

Why not add command "copy to workspace" like "compare with Workspace tree"
in context menu? It's easier than every time to choose path where save this file.
I can compare(if file exist), but i can't copy not existent file.

Or may be also compare new file that not exist in workspace?


I may have missed something in the logic ui for this case?