Class StashApplyCommand

java.lang.Object
org.eclipse.jgit.api.GitCommand<ObjectId>
org.eclipse.jgit.api.StashApplyCommand
All Implemented Interfaces:
Callable<ObjectId>

public class StashApplyCommand extends GitCommand<ObjectId>
Command class to apply a stashed commit. This class behaves like git stash apply --index, i.e. it tries to recover the stashed index state in addition to the working tree state.
Since:
2.0
See Also:
  • Constructor Details

    • StashApplyCommand

      public StashApplyCommand(Repository repo)
      Create command to apply the changes of a stashed commit
      Parameters:
      repo - the Repository to apply the stash to
  • Method Details