FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.43k stars 636 forks source link

ungit UI is not updating automatically #425

Open passion8 opened 10 years ago

passion8 commented 10 years ago

ungit UI doesn't update automatically. I have to do force refresh to see the changes. It looks like it doesn't watch the project.

jung-kim commented 10 years ago

Could you describe the scenario? Ungit should have triggered refresh on focus when the time diff between last activity and current time is bigger than 3 seconds.

Also, there is a manual refresh button next to the directory bar which can be used without full page reload.

FredrikNoren commented 10 years ago

@passion8 also file watching is crappy in most OS, there's been a bunch of discussions around this if you search "watch" among the issues. Basically it's just hard to make it reliable, so we have to have hacks like what @codingtwinky mentioned just to get it somewhat working.

passion8 commented 10 years ago

i have

[~] node -v        
v0.10.24

[~] cat ~/.ungitrc 
{
    "bugtracking": true,
    "sendUsageStatistics": true,
    "socketId": 0
 }

I believe i m using latest ungit. i tried ungit -v, couldn't found its version number.

I am using MacOS mavericks.

I won't trigger refresh automatically unless i scroll it to very bottom. Earlier, i guess may be 1 year before, the ungit updates occurs in real time. Like, if i change foo branch to master with command, the changes will appear there automatically.

Ajedi32 commented 10 years ago

Like, if i change foo branch to master with command, the changes will appear there automatically.

Ah, in that case this might be a duplicate of #283.