-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply only created stashes automatically
There are cases when Git says about modification, although they are absent in a working tree. And Elegant Git, as it sees the changes, will try to stash them. But the stash won't be created (Git just says: "No local changes to save"), and, as the exit code is 0, the next command will be executed. At this point, Elegant Git will assume, that created stash (which is false) must be uncovered after commands execution. And it will apply the last available stash instead of doing nothing. That's why a check is added that sees if there is a real created stash that must be uncovered.
- Loading branch information
Showing
2 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters