sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.35k stars 135 forks source link

Full statistics #493

Closed Gama11 closed 1 month ago

Gama11 commented 1 month ago

Currently the statistics window is capped at one year which is not very long. How about a fourth tab showing the full statistics over the repo's lifetime?

love-linger commented 1 month ago

I'm very sorry, this feature will not be added to the development plan. Because the number of commits in the whole life cycle of some repository is very large, it is very time-consuming to count, and the memory consumption will also be very large. For example, the EpicGames/UnrealEngine repository, which I commonly use, has a total of 600K+ commits.

Gama11 commented 1 month ago

Hm, I'd imagine that's an exception though, most people are not working with repos that large.

Maybe it could it be capped to a certain "reasonable" amount of commits? The repo I'm working on most frequently has a bit over 14k commits right now, I'd imagine that would still be pretty fast.

The problem is that the one year cap is not that useful for small-ish repos that have existed over a long time period (imagine 1000 commits over 10 years for instance).

love-linger commented 1 month ago

done. currently the YEAR tab has been replaced by OVERVIEW tab, which will analyze most recent 20K commits.

image

You can test it from the latest build https://github.com/sourcegit-scm/sourcegit/actions/runs/10995635435

Gama11 commented 1 month ago

Very nice, thank you. :tada: