Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329939 - Context Menu for Files. Team->Checkout
Summary: Context Menu for Files. Team->Checkout
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 14:10 EST by David Carver CLA
Modified: 2013-05-19 09:21 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2010-11-10 14:10:13 EST
At a git command line, if I want to restore a file, from what is stored in the repository, I can do a git checkout filenamepath/filenametocheckout to restore the file to the previous state.

With eGit, I see no such opton, the only option that can close as the History view, but that allowed me to check out a commit id, and not the individual file.
Comment 1 Lars Vogel CLA 2010-11-10 14:11:24 EST
+1 for this request. Would be really useful.
Comment 2 Stefan Lay CLA 2010-11-10 15:57:06 EST
There is Replace with -> File in Git Index on file level.
What is missing is Replace With -> HEAD.

If Replace With -> HEAD was there, would you still want to have "Checkout" in the team menu?
Comment 3 Lars Vogel CLA 2010-11-10 15:59:02 EST
Replace With -> HEAD would be sufficient for me. 

@David?
Comment 4 David Carver CLA 2010-11-10 16:06:43 EST
(In reply to comment #3)
> Replace With -> HEAD would be sufficient for me. 
> 
> @David?

Yeah, Replace With->Head would work.
Comment 5 Robin Stocker CLA 2013-05-18 16:16:30 EDT
Replace With -> HEAD Revision is available in current releases of EGit.
Comment 6 Lars Vogel CLA 2013-05-19 09:21:38 EDT
Thanks, that is a useful option