IntelliJ Idea runs "git log" command in the background causing high CPU usage

1

I have a very large project (~5GB, including .git) opened in IntelliJ Idea on MacOS Mojave. I've noticed that CPU usage is quite high while IDE is in the background and doing nothing.

I did some research and noticed that IDE is running following GIT command periodically:

/usr/local/bin/git -c credential.helper= -c core.quotepath=false -c log.showSignature=false -c diff.renameLimit=1 log -M -m --no-walk=unsorted --stdin --pretty=format:%x01%x01%H%x02%x02%P%x02%x02%ct%x02%x02%cn%x02%x02%ce%x02%x02%an%x02%x02%at%x02%x02%ae%x02%x02%s%x02%x02%b%x02%x02%B%x03%x03 --encoding=UTF-8 --name-status --

If I disable "Git" plugin, everything is fine. If I close very large project and keep only small ones, everything is fine too. I guess, git log is slow due to the massive size of repository.

Is there any way I can disable this git log command or make it run less aggressively without disabling the whole "Git" plugin? I need it sometimes for "Annotate" function only.

Thank you.

wildraid

Posted 2019-08-24T17:05:22.357

Reputation: 11

No answers