Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch branch also saves and reverts ignored changes #353

Open
j4yk opened this issue Nov 14, 2021 · 0 comments
Open

Switch branch also saves and reverts ignored changes #353

j4yk opened this issue Nov 14, 2021 · 0 comments

Comments

@j4yk
Copy link
Collaborator

j4yk commented Nov 14, 2021

Scenario: some method or class changes are ignored because they are just for local development (e. g. extra asserts and isThisEverCalleds) and not to be committed. A new feature is started but not finished and no commit was made yet. To work on something else, a new branch is created to hold the unsaved changes for the new feature, to then switch back to the previous branch to start something else there.

Would be nice if the ignored changes for local development would stay when the branch is switched, because they do not belong to the feature that the branch stands for, and reverting these changes if they are of a general nature does not make sense here.

Currently ignored changes are saved as unsaved changes to the temporary Git refs on top of the new branch, and after switching to the other branch, the ignored changes are no longer loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant