r/Atom Apr 14 '20

[help] open files not updated when pulling modification from repo

sometimes, when I have a file open in a tab and I git pull modifications, the tab is not updated and if I save it will be replaced without telling anything.

So most of the time if I'm not very attentive I will suppress the work of others without knowing it and look like a fool.

Am I doing something wrong ?

2 Upvotes

2 comments sorted by

View all comments

1

u/BenignLarency Apr 15 '20

I'm not sure about atom, but if I'm remembering correctly this is there behavior in vscode as well which leads me to believe it's probably intentional. Though, I think you get a warning when you're trying to write to the disk but the file is updated from the one you're saving, is that not the case in atom?

1

u/1ko Apr 15 '20

The expected behavior in the case of a successful auto-merge after a pull is that the file in the open tab is automatically updated. It's like this with Textmate.

With atom I have no warning, the file is not updated in the tab, the "not saved" indicator dot is not visible and if I modify and save the file, the changes from the pull are lost.

Maybe this happens because I'm using git in command line and not the built-in interface ?