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

Fixed issue #2376: Accidental stash-pops can so easily overwrite the uncommited working dir changes #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YueLinHo
Copy link
Contributor

cf : Issue 2376

I don't think stash pop can easily overwrite the uncommited changes after reading this.
(After git 1.7.5.1, git drop dirty worktree check on apply.)

So, I think a warning message box is enough. agree?
If you disagree it, feel free to close this PR. :)

Also warn for git stash apply? Maybe not.

@YueLinHo YueLinHo force-pushed the ylh/i2376 branch 2 times, most recently from 0ae614f to 8065118 Compare February 10, 2015 14:05
@YueLinHo
Copy link
Contributor Author

@ch3cooli Updated. ^_^ Thanks.

@YueLinHo YueLinHo changed the title [RFC] Fixed issue 2376: Accidental stash-pops can so easily overwrite the uncommited working dir changes [RFC] Fixed issue #2376: Accidental stash-pops can so easily overwrite the uncommited working dir changes Feb 10, 2015
@csware
Copy link
Member

csware commented Feb 14, 2015

We should make this opt-in - if we want to have this.

@YueLinHo
Copy link
Contributor Author

@csware
I am not sure what the 'opt-in' means. ^^!
Is it?

  1. putting a checkbox "Don't ask me again. (always pop)" into the warning message box
  2. adding a settings "WarnStashPop" into "TortoiseGit -> Settings -> Advanced list"

@csware
Copy link
Member

csware commented Feb 15, 2015

Exactly

@YueLinHo YueLinHo changed the title [RFC] Fixed issue #2376: Accidental stash-pops can so easily overwrite the uncommited working dir changes Fixed issue #2376: Accidental stash-pops can so easily overwrite the uncommited working dir changes Feb 17, 2015
@YueLinHo
Copy link
Contributor Author

@csware
Updated.
(Spend a little time to study how to use CMessageBox::ShowCheck() :) )

…uncommited working dir changes

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
@csware
Copy link
Member

csware commented Nov 20, 2023

There is a check in Git which prevents stash pop from overwriting uncommitted changes in the working tree.

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