fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
450 stars 10 forks source link

[Feature request] Add "Fetch remotes automatically" option per repository aswell #2165

Closed nomis51 closed 2 weeks ago

nomis51 commented 4 months ago

Introduction

By default the global setting Fetch remotes automatically is enabled, which in my case was causing me performance problems since I have a lot of repositories opened at the same time, so I had to disable it and I'm fine with that.

The problem

But, my issue is, I have 2-3 big repositories (long history and lots of branches) that I would need to be up-to-date (so auto fetch) as much as possible, since it's taking Fork a good 5-10 seconds to refresh them everytime I need to let's say go to the changes tab to commit some changes or check the history for coworkers changes, and that's very annoying. Also, to make things worse, Fork spawns a bunch of background processes to do the fetching (if I have like 20 repositories opened, it spawns like 20 processes), and that triggers the corporate AV that starts analyzing them in the background to see why there's suddently 20 processes spawning out of nowhere, and of course AV doesn't flag anything since it's legit, but the AV analysis does slow down even more the multiple fetch.

Solution

Similar to the git configuration where you can have different identities / settings per repository, add the option Fetch remotes automatically in the Repository settings aswell, so we could have some repositories that auto fetch on a timer if we want, or use the global setting to auto fetch all of them.

DanPristupov commented 4 months ago

You can disable automatic fetch per-remote:

Screenshot 2024-03-06 at 18 28 23
nomis51 commented 4 months ago

Good to know! I've been looking around in the menus and settings to see if I was missing something. Didn't thought about right-clicking on the Remotes origin item.

That pretty much fix my issue I believe, thanks!