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

Bug 441356

Summary: Add a git stash pop command
Product: [ECD] Orion Reporter: Maciej Bendkowski <maciej.bendkowski>
Component: GitAssignee: Maciej Bendkowski <maciej.bendkowski>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 6.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=359273
Whiteboard:

Description Maciej Bendkowski CLA 2014-08-07 10:49:45 EDT
Git stash pop is equivalent to applying the latest change, i.e. stash@{0}, and then dropping it. As the stash is usually one commit in size, it's a great "click-saver" command.
Comment 1 Maciej Bendkowski CLA 2014-08-11 06:01:36 EDT
Fixed with:

http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=7582a1a98a895c13f97050abf8d3e4374a501063

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=3263414b9cf90d70ac2e3370739762370d079ae8

Note that JGit does not support an atomic git stash pop command (see bug 441493) and therefore had to be mimicked by a non-atomic apply & drop.