Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337285

Summary: Should be able to replace a file / folder / project with a particular commit without moving HEAD
Product: [Technology] EGit Reporter: James Blackburn <jamesblackburn+eclipse>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: pwebster, robin, stefan.lay
Version: 0.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description James Blackburn CLA 2011-02-16 04:35:07 EST
There's no support for replacing the contents of a file with the contents in another branch / tag / commit without also moving the HEAD.  The equivalent of git checkout -- <paths> 

Like CVS there could be a "Get Contents" action in the history view, and also hang off of context menu > Replace With > Commit / Tag.

The term checkout is overloaded in cgit and it would be good if the UI made the distinction between moving HEAD and just replacing file contents.
Comment 1 Stefan Lay CLA 2011-02-21 09:27:36 EST
First Step "Replace With HEAD" is in review: http://egit.eclipse.org/r/#change,2415
Comment 2 Robin Stocker CLA 2012-10-20 17:56:15 EDT
This has been fixed for some time, see bug 326638.

*** This bug has been marked as a duplicate of bug 326638 ***