go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.18k stars 5.42k forks source link

Add option to disable file listing in code tab #31844

Open angelosilvestre opened 1 month ago

angelosilvestre commented 1 month ago

Feature Description

We have a repository with a large number of files in the root directory.

Because of this, when an user accesses the code tab the CPU and memory usage of the instance becomes very high. Also, the page takes a long time until it's shown.

It would be good to have an option to disable the file listing, while keeping the commits, branches and other options visible.

Screenshots

No response

lunny commented 1 month ago

Maybe we can have a default repository page. The default value is file list, and options are commits list, README-only, branches list and etc.