Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » resetting a path or paths(does egit/jgit support resetting a path?)
resetting a path or paths [message #1288299] Tue, 08 April 2014 08:45 Go to next message
R Shapiro is currently offline R Shapiro
Messages: 386
Registered: June 2011
Senior Member
Does EGit support resetting the index of the selected path or, even batter paths, to a given commit?

So far I don't see a way to do this but previous experience suggests it might be available somewhere I didn't think to look.
Re: resetting a path or paths [message #1288302 is a reply to message #1288299] Tue, 08 April 2014 08:50 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 556
Registered: July 2009
Senior Member
you can use any command out of "Replace with > HEAD" "Replace with Branch, Tag or Reference..." or "Replace with Commit..." to reset selected resources
to another version, though I think that kind of commands is not available directly on the index
Re: resetting a path or paths [message #1288848 is a reply to message #1288302] Tue, 08 April 2014 18:46 Go to previous messageGo to next message
R Shapiro is currently offline R Shapiro
Messages: 386
Registered: June 2011
Senior Member
Replace With does a checkout, not a reset, no? In other words it the equivalent of

git checkout <tree-ish> -- <path>


rather than

git reset <tree-ish> -- <path>


I'm looking specifically for the latter.
Re: resetting a path or paths [message #1315448 is a reply to message #1288848] Fri, 25 April 2014 20:42 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 556
Registered: July 2009
Senior Member
- Use "Team > Remove from Index" or "Unstage" in the staging view to reset the selected path(s) to HEAD.
- Resetting to another commit isn't yet implemented in EGit
- JGit's ResetCommand currently only supports resetting to a ref but not yet to a commit.
Previous Topic:What is the "EGit Project Set Support" option in older EGit versions
Next Topic:Getting status of repository
Goto Forum:
  


Current Time: Fri Aug 22 00:13:45 EDT 2014

Powered by FUDForum. Page generated in 0.02144 seconds