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

Feature request: Ask user to discard XPR changes before checkout #161

Open
stefan-jung opened this issue Jan 18, 2022 · 4 comments
Open

Comments

@stefan-jung
Copy link

Hi, I frequently switch branches, e.g. from main to a feature branch. What happens to me quite often is, that a change in an XPR file is blocking the checkout. It happens in at least 75% of all cases. Then I usually need to switch the view and discard the XPR change. Unfortunately Git does not have something like a "pre-checkout" hook. So I cannot automate this. It would be nice if the Git addon would ask me, if I would like to discard XPR changes when this is interfering the checkout in some way.

@AlexJitianu
Copy link
Collaborator

Hi,
In this scenario we currently present this dialog:
image

Sometimes moving the changes fails with:
image
For this cases it would be good to have an additional option "Discard changes" in the dialog.

Does this sound O.K.?

@raducoravu
Copy link
Contributor

As a side note in the "Preferences->Project Level Settings" page maybe you can uncheck certain checkboxes to make the project.xpr less volatile to change.

@stefan-jung
Copy link
Author

@AlexJitianu, yes. Currently I stash everything and delete my stashes every few days. 😄

@sorincarbunaru
Copy link
Collaborator

Note: internal issue ID is EXM-49768.

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

No branches or pull requests

4 participants