Describe the feature that you'd like
Automatic update the graph on changes (commit/pull/merge/...) to the git repository.
Additional context (optional)
I would like to use this plugin for git trainings or demonstrations.
Here it would be perfect if the graph will update automatically to the current state of the repository.
Actually the graph must be refreshed manually with a focus change or a click on refresh.
Similar to GitUp (sadly Mac only).
Thanks for the great suggestion! I plan on having this available within the next two weeks.
This is now completed, and will be available in 1.4.3.
Works fine.
Hello.
Apparently this feature has been implemented a long time ago but it seems it doesn't work the way I expected it to work, or I misunderstood something.
Currently, with Git Graph 1.21.0 being open and my local branch being behind origin, if I git pull in the VSCode terminal Git Graph do not refresh to reflect that (it only does later from automatic refreshing)
On the other hand, when I merge branches it seems to refresh instantly, so idk
Hi @rndmerle,
Git Graph utilises Visual Studio Code鈥檚 File System Watcher to detect file changes within the repository, and then it will automatically refresh the Git Graph View to reflect the changes. This is the only way to achieve this in Visual Studio Code extensions.
Unfortunately the Visual Studio Code File System Watcher has some known limitations, some of them are (but not limited to):
I expect that one of these scenarios, or another known limitation of the Visual Studio Code鈥檚 File System Watcher is unfortunately preventing the automatic refresh mechanism of the Git Graph View from triggering as you would expect on your machine and/or projects workspace.
Considering the automatic refresh functionality has been available for almost a year now, none of the other 300,000+ users have indicated the current approach is unreliable, and there being no suitable alternative method to implement this feature, I don鈥檛 think any further action needs to be taken at this point in time.
As Visual Studio Code is regularly updated and improved, it鈥檚 also highly likely that they will improve their File System Watcher, which will immediately make the Git Graph View鈥檚 automatically refresh mechanism work more reliably.
Also, if I find a more reliable alternative to the Visual Studio Code File System Watcher, I definitely want to & will implement it.
Thanks a lot for the detailled explanation :) And keep up with the good work
Most helpful comment
Hi @rndmerle,
Git Graph utilises Visual Studio Code鈥檚 File System Watcher to detect file changes within the repository, and then it will automatically refresh the Git Graph View to reflect the changes. This is the only way to achieve this in Visual Studio Code extensions.
Unfortunately the Visual Studio Code File System Watcher has some known limitations, some of them are (but not limited to):
I expect that one of these scenarios, or another known limitation of the Visual Studio Code鈥檚 File System Watcher is unfortunately preventing the automatic refresh mechanism of the Git Graph View from triggering as you would expect on your machine and/or projects workspace.
Considering the automatic refresh functionality has been available for almost a year now, none of the other 300,000+ users have indicated the current approach is unreliable, and there being no suitable alternative method to implement this feature, I don鈥檛 think any further action needs to be taken at this point in time.
As Visual Studio Code is regularly updated and improved, it鈥檚 also highly likely that they will improve their File System Watcher, which will immediately make the Git Graph View鈥檚 automatically refresh mechanism work more reliably.
Also, if I find a more reliable alternative to the Visual Studio Code File System Watcher, I definitely want to & will implement it.