-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Set head/stash reference after pop/drop stash #713
Conversation
Tested. I can confirm this works. Nice bug fix! One suggestion: If I do |
In your last commit #4cb4410, when I refresh, it automatically selects the top item in the CommitList. In my opinion, this is disorienting. When a certain commit selected, I like that commit to stay selected unless the user specifically moves to another one by clicking or using arrow keys. I think your Thoughts? |
I agree that a refresh should only have an effect if there was actually a change (e.g. in the background by a command line action). Thus the last commit is no improvement. The simple solution would be that I put |
I tried to modify the
I was able to change it that the the view shows Uncommitted Changes after a stash pop. |
Fixes the issue "Dropping multiple stashs in a row segfaults Murmele#637". The cause of the crash was that the commit list was not properly updated after pop/drop stash actions. With this change the commit list is updated or when the stash gets empty (after last pop/drop) then the head is selected as current reference.
When executing "Stash->Pop Stash" from the menu bar or when popping a specific stash from the commit list then the repo view is set to the head revision and the commit list is updated with the content from the head revision. Before the when doing a "Refresh" and being on the stash view the commit list stayed on the stashes but the head revision was selected. Now the commit list contains the commits from the head revision.
Co-authored-by: Ryan Jensen <[email protected]>
51d9a57
to
744dc13
Compare
Fixes the issue "Dropping multiple stashs in a row segfaults #637". The cause of the crash was that the commit list was not properly updated after pop/drop stash actions. With this change the commit list is updated or when the stash gets empty (after last pop/drop) then the head is selected as current reference.