-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Pulsar doesn't update file buffers correctly when switching branches #1227
Comments
There's a setting that governs this and it defaults to |
No, it was false. I didn't know that option sry.
|
Not a problem — I forgot that option even existed until reading through the long, long saga of the ticket you linked. |
Anyway, here's how it's supposed to work — if it's not working this way for you, please let us know:
In my experience, everything works as expected when there are no modified buffers. But the features that would be nice to have are these:
These could work identically whether files are under version control or not. |
Aha — #1040 is the ticket I made for this last year. |
ok
this could be dangerous if i have not opened git tab
This should be in my opinion, the normal workflow. Kate editor (default kde editor) works like this too. If the file open in your tab changes for whatever reason, kate shows a warning without changing the file you watch and proposing to A: reload the file or B: save your changes overwriting existing file. Btw thanks for your work!! |
Thanks in advance for your bug report!
What happened?
Hi,
i think this is the same issue on atom
atom/atom#4982
If you change branch via cli, pulsar does not reflect this leaving files opened, very dangerous.
Steps to reproduce:
in a git repo, from "dev" branch make a "test" branch, now open pulsar and create a file testfile and commit
Leave Pulsar opened and from cli change branch to "dev".
testfile should be closed on Pulsar and not visible from tree.
Instead it stay open and if you modify and save it you'll find in "dev" branch".
This is particularly dangerous when you have same files with different content, for example via cli in testfile in test branch write "lorem ipsum" and save 'n' commit, now change to dev branch and in testfile write "ipsum lorem" save n commit, open pulsar you are in dev branch, modify the file and s'n'c, change to test branch the file show the content from dev branch!! if you save you'll overwrite the file in branch "test" !!! O.O
Pulsar version
1.125.2025012404
Which OS does this happen on?
🐧 Debian based (Linux Mint, Ubuntu, etc.)
OS details
Ubuntu 22.04
Which CPU architecture are you running this on?
x86_64/AMD64
What steps are needed to reproduce this?
testfile should be closed on Pulsar and not visible from tree.
Instead it stay open and if you modify and save it you'll find in "dev" branch".
Additional Information:
No response
The text was updated successfully, but these errors were encountered: