| Modifier and Type | Field and Description |
|---|---|
| private ContentMergeStrategy | |
| private static final String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private String | |
| private MergeStrategy |
| Access | Constructor and Description |
|---|---|
| public | StashApplyCommand(Repository
the repo)org. to apply the stash
toCreate command to apply the changes of a stashed commit |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectId | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private void | checkoutPath(DirCacheEntry entry, String gitPath, ObjectReader reader, Checkout checkout, DirCacheCheckout.
|
| private ObjectId | |
| public StashApplyCommand | Returns: thiswhether to ignore the repository state when applying the stash willIgnoreRepositoryState)Whether to ignore the repository state when applying the stash |
| private void | |
| private void | |
| public StashApplyCommand | Returns: thisthe strategy)ContentMergeStrategy to be usedSets the content merge strategy to use if the
|
| public StashApplyCommand | Returns: thistrue (default) if the command should restore the index state restoreIndex)Whether to restore the index state |
| public StashApplyCommand | Returns: thistrue (default) if the command should restore untracked files restoreUntracked)Whether the command should restore untracked files |
| public StashApplyCommand | Returns: thisname of the stash stashRef)Ref to applySet the stash reference to apply This will default to apply the latest stashed commit (stash@{0}) if unspecified |
| public StashApplyCommand | Returns: thisThe merge strategy to use in order to merge during this
command execution. strategy)Set the |
| contentStrategy | back to summary |
|---|---|
| private ContentMergeStrategy contentStrategy | |
| DEFAULT_REF | back to summary |
|---|---|
| private static final String DEFAULT_REF | |
| ignoreRepositoryState | back to summary |
|---|---|
| private boolean ignoreRepositoryState | |
| restoreIndex | back to summary |
|---|---|
| private boolean restoreIndex | |
| restoreUntracked | back to summary |
|---|---|
| private boolean restoreUntracked | |
| stashRef | back to summary |
|---|---|
| private String stashRef | |
| strategy | back to summary |
|---|---|
| private MergeStrategy strategy | |
| StashApplyCommand | back to summary |
|---|---|
| public StashApplyCommand(Repository repo) Create command to apply the changes of a stashed commit
| |
| call | back to summary |
|---|---|
| public ObjectId call() throws GitAPIException, WrongRepositoryStateException, NoHeadException, StashApplyFailureException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command Apply the changes in a stashed commit to the working directory and index
| |
| checkoutPath | back to summary |
|---|---|
| private void checkoutPath(DirCacheEntry entry, String gitPath, ObjectReader reader, Checkout checkout, DirCacheCheckout. | |
| getStashId | back to summary |
|---|---|
| private ObjectId getStashId() throws GitAPIException | |
| ignoreRepositoryState | back to summary |
|---|---|
| public StashApplyCommand ignoreRepositoryState(boolean willIgnoreRepositoryState) Whether to ignore the repository state when applying the stash
| |
| resetIndex | back to summary |
|---|---|
| private void resetIndex(RevTree tree) throws IOException | |
| resetUntracked | back to summary |
|---|---|
| private void resetUntracked(RevTree tree) throws CheckoutConflictException, IOException | |
| setContentMergeStrategy | back to summary |
|---|---|
| public StashApplyCommand setContentMergeStrategy(ContentMergeStrategy strategy) Sets the content merge strategy to use if the
| |
| setRestoreIndex | back to summary |
|---|---|
| public StashApplyCommand setRestoreIndex(boolean restoreIndex) Whether to restore the index state
| |
| setRestoreUntracked | back to summary |
|---|---|
| public StashApplyCommand setRestoreUntracked(boolean restoreUntracked) Whether the command should restore untracked files
| |
| setStashRef | back to summary |
|---|---|
| public StashApplyCommand setStashRef(String stashRef) Set the stash reference to apply This will default to apply the latest stashed commit (stash@{0}) if unspecified
| |
| setStrategy | back to summary |
|---|---|
| public StashApplyCommand setStrategy(MergeStrategy strategy) Set the
| |