Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352142 - support more reset options
Summary: support more reset options
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 13:20 EDT by R Shapiro CLA
Modified: 2013-05-19 18:52 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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