Skip to content

[Stashing] Adds workflow that allows users to take changes with them to new branch - #7219

Merged
outofambit merged 19 commits into
stash-changes-on-branchfrom
come-on-changes-lets-just-go-to-another-branch
Apr 10, 2019
Merged

outofambit merged 19 commits into
stash-changes-on-branchfrom
come-on-changes-lets-just-go-to-another-branch

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Apr 4, 2019 •

Copy link
Copy Markdown
Contributor

⚠️ Review #7210 first ⚠️

Fixes #7248 - ac1a72f and 7fbce46
Related issues: #6107, #6987

This PR addresses the following user story:

I realized after I started doing work that I actually wanted to be doing that work on a different branch. I want to be able to switch branches and retain the uncommitted changes I've made without having to leave GitHub Desktop.

2019-04-04 15 13 31

Important bits

  • Changed git stash apply <stash> to git stash pop <stash> after learning that I can specify a stash to pop. git stash drop <stash> still exists because we still have to support dropping an arbitrary stash.
  • Added a new enum to control what stash related tasks occur before/after a checkout.
  • Moved logic for each workflow from the component to AppStore to reduce simplify the component and make the relationship between stashing and checking out a branch explicit.

What's not here

  • More robust error-handling. I am letting errors bubble up to the UI during the development so any issues are immediately visible.
  • UI for viewing diff of stash

William Shepherd and others added 4 commits April 4, 2019 11:23
Will let pop handle removing applied stash entries

Co-Authored-By: Markus Olsson <[email protected]>
Co-Authored-By: Markus Olsson <[email protected]>
@iAmWillShepherd
iAmWillShepherd changed the base branch from development to stash-changes-on-branch April 4, 2019 20:03
@iAmWillShepherd iAmWillShepherd changed the title [Stashing] - Adds workflow that allows users to take changes with them to new branch [Stashing] Adds workflow that allows users to take changes with them to new branch Apr 5, 2019
@iAmWillShepherd iAmWillShepherd added this to the 1.7.0 milestone Apr 5, 2019
@iAmWillShepherd iAmWillShepherd mentioned this pull request Apr 5, 2019
6 tasks done
@iAmWillShepherd
iAmWillShepherd requested a review from a team April 9, 2019 22:30
@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 9, 2019

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a couple comments, but overall looks good!

Comment thread app/src/lib/stores/app-store.ts Resolved
Comment thread app/src/lib/stores/app-store.ts Resolved
@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

🍎

Comment thread app/src/lib/stores/app-store.ts Resolved
Comment thread app/src/lib/stores/app-store.ts Resolved
outofambit and others added 2 commits April 10, 2019 13:29
[Stashing] Update desktop stash marker
@outofambit
outofambit merged commit 52c38d6 into stash-changes-on-branch Apr 10, 2019
@iAmWillShepherd
iAmWillShepherd deleted the come-on-changes-lets-just-go-to-another-branch branch April 11, 2019 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants