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

Bug 352142

Summary: support more reset options
Product: [Technology] EGit Reporter: R Shapiro <rshapiro>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: matthias.sohn, robin
Version: unspecified   
Target Milestone: 3.0   
Hardware: All   
OS: All   
Whiteboard:

Description R Shapiro CLA 2011-07-14 13:20:56 EDT
The current egit reset operation doesn't supporting resetting to a relative offset (eg HEAD^), or to a specific SHA. Both are commonly used and would be very handy to have in the plugin.

These options could be handled in the Git Reflog view by adding a right-click popup menu.  Or they could be added as tools on commit windows (like 'create tag' and 'create branch').  Or they could be added to the existing 'reset' toolbar/menu item via a text-box that would accept an arbitrary reference.  Or all of the above.
Comment 1 Matthias Sohn CLA 2011-08-10 05:36:16 EDT
Yeah, this would be useful.

It's already possible to reset to any commit in the History View:
- select commit you want to reset to
- click "Reset > hard/soft/mixed"
Comment 2 Robin Stocker CLA 2013-05-19 18:52:45 EDT
Allowing to enter a commit expression in the reset dialog was recently implemented and will be in 3.0:

http://git.eclipse.org/c/egit/egit.git/commit/?id=3ad3c7a2be2d2402d01c014bded6aa0208c16e92