Repository navigation
[Stashing] Notify user that an existing stash will be overwritten - #7230
iAmWillShepherd merged 29 commits into
Conversation
…t-you-already-have-stashed-changes
….com/desktop/desktop into but-you-already-have-stashed-changes
This will allow users to recover their stash so long as git GC hasn't been run.
`getBranchesState` should probably be removed. It will not give branch state unless the repo is a GitHub repo.
…t-you-already-have-stashed-changes
niik
left a comment
There was a problem hiding this comment.
Seems like there's a little build problem due to branchesState being referred to as state here.
| public render() { | ||
| const title = __DARWIN__ | ||
| ? 'Are You Sure You Want To Overwrite Your Current Stash?' | ||
| : 'Are you sure you want to overwrite your current stash?' |
There was a problem hiding this comment.
This is a little meaty for a title. Could we incorporate this message into the dialog contents and make the title be something like Overwrite Stash?
There was a problem hiding this comment.
I decided to get rid of this content entirely since putting it in the dialog content area would be redundant.
|
🍎 |
Co-Authored-By: iAmWillShepherd <[email protected]>
Co-Authored-By: iAmWillShepherd <[email protected]>
|
@desktop/engineering I have to head out but given the time sensitive nature, the fact that I've reviewed this and everyone else will be up and around for almost a full day before I get back I think it's fine if this is merged by someone else before I'm back tomorrow. |
|
Merging now since this is going into a feature branch and having these changes in one branch makes @desktop/quality-assurance lives easier. |

Fixes #7250 - e655e8a
Related issues: #6107 and #6987
This PR updates the stash changes workflow to ask for confirmation when creating a stash would result in the previous stash being overwritten.