Skip to content

Impl/stash selected changes - #16535

Closed
ms-nc wants to merge 6 commits into
desktop:developmentfrom
ms-nc:impl/stash_selected_changes
Closed

ms-nc wants to merge 6 commits into
desktop:developmentfrom
ms-nc:impl/stash_selected_changes

Conversation

@ms-nc

@ms-nc ms-nc commented Apr 15, 2023 •

Copy link
Copy Markdown

Closes #11531

Description

Resolving this issue revealed underlying issues in Desktop's current implementation and handling of git stashes that affected the solution I went with:

  • Desktop only recognizes and manages git stashes made by Desktop.
  • Desktop doesn't fully manage all of a branch's stashes.
  • git stash commands can't "ammend" existing stashes.

Given these issues, there is no currently defined right approach that Desktop adheres to.
Leading me to decide to try to solve the issue from the user experience POV the issue itself expected -
A singular stash Desktop is familiar with that can be ammended.

The actual implementation I went with:

  • "Ammend" existing Desktop stash by using git stash pop then pushing back with the new changes.
  • Stash selected files (does not include diff partial file stashes).

Screenshots

2023-04-15

Release notes

Notes:

@ms-nc

ms-nc commented Apr 15, 2023

Copy link
Copy Markdown
Author

An issue I'm aware of that needs cleanup -
When we do the temporary git stash pop we apply _refreshRepository which makes the UI show the popped files briefly.

git.stash.pop.issue.mp4

@jorisw

jorisw commented Mar 26, 2024 •

Copy link
Copy Markdown

@tidy-dev Please either review or close this nearly year old PR.

@aditya0by0

Copy link
Copy Markdown

@tidy-dev Please either review or close this nearly year old PR.

Hi @tidy-dev, what happened to the review of the PR of the feature. Very useful feature, eagerly waiting for this feature. :)

@steveward steveward added the external Pull request originating outside of the Desktop core team label Oct 4, 2024
@SuperLlama88888

Copy link
Copy Markdown
Contributor

I hope this is merged soon...

@tidy-dev

Copy link
Copy Markdown
Contributor

@ms-painter Thank you for wanting to contribute and for your hard work on this feature. Sorry for taking so long to reply.

The GitHub Desktop team discussed this pull request today, and unfortunately, we have decided to close it. Stashing is a core feature, and the current implementation was introduced after thorough user research and design that addressed the most common use cases for stashing. We want to reserve the completion of another iteration for our internal team so that we can conduct a similar in-depth review of what the next iteration of stashing should look like. This will allow us to consider current user requests, such as single-file stashing, multiple stashes, and visibility of stashes made outside of GitHub Desktop. At the same time, we aim to ensure that the current implementation, which works well for a large percentage of our users, is not disrupted.

@tidy-dev tidy-dev closed this Jan 13, 2025
@jorisw

jorisw commented Jan 13, 2025

Copy link
Copy Markdown

Except you’re highly unlikely to do any work of your own on this in the next five years, if the past is any indication?

Which is probably why users are trying to get something done about it?

pol-rivero added a commit to desktop-plus/desktop-plus that referenced this pull request Mar 21, 2025
Squashed changes from this PR:
desktop#16535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stash specific file/s or stash selected files

6 participants