Repository navigation
Add all foundation stash functions needed to support stashing in the app - #7182
Merged
Merged
Conversation
added 11 commits
March 29, 2019 13:26
This was referenced Mar 29, 2019
shiftkey
reviewed
Apr 1, 2019
shiftkey
left a comment
Member
There was a problem hiding this comment.
Great to see all of these related APIs aggregated together so we can talk about them as a set! 🎉
Some initial questions, mostly about how much defensiveness should be baked into the Git plumbing...
Using the create and store commands don't automatically clear the working tree. Since doing that just for testing is a bit much, I decided to just use what works and move on.
This is needed because `git stash drop stash@{<commit SHA>}` doesn't always work.
Co-Authored-By: iAmWillShepherd <[email protected]>
Using the `toHaveLength` function was failing even though the returned object ` [{"branchName": "master", "name": "stash@{0}", "stashSha": "6a722cb052d4827a3ba1c21a15e6ec16409d4545"}]` only has one item.
shiftkey
reviewed
Apr 1, 2019
Co-Authored-By: Brendan Forster <[email protected]>
It seems using the same content in the file was causing one stash entry to get created dusring test execution. This is likely due to changes to files not being written to disk at the right time. Co-Authored-By: Brendan Forster <[email protected]>
Updated to remain consistent with coding style
shiftkey
reviewed
Apr 2, 2019
Member
|
I plan to merge this in tomorrow morning unless others have feedback to add |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See tracking issue for more details - #6987
This PR brings together the functionality from the following PRs:
These functions are needed to support the following workflows:
How do these functions relate to one another?
Both workflows start off from the same stash dialog.
Stashing changes on current branch
getLastDesktopStashEntryForBranch->dropDesktopStashEntrycreateDesktopStashEntrygetLastDesktopStashEntryForBranchMove to new branch and take changes there
getLastDesktopStashEntryForBranch->dropDesktopStashEntrycreateDesktopStashEntryapplyStashEntrydropDesktopStashEntry