1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 06:04:25 +00:00
gitea/modules/indexer
Lunny Xiao c03baab678
Refactor the usage of batch catfile (#31754)
When opening a repository, it will call `ensureValidRepository` and also
`CatFileBatch`. But sometimes these will not be used until repository
closed. So it's a waste of CPU to invoke 3 times git command for every
open repository.

This PR removed all of these from `OpenRepository` but only kept
checking whether the folder exists. When a batch is necessary, the
necessary functions will be invoked.
2024-08-20 17:04:57 +00:00
..
code Refactor the usage of batch catfile (#31754) 2024-08-20 17:04:57 +00:00
internal Fix bleve fuzziness (#30799) 2024-05-01 15:32:52 +03:00
issues Properly filter issue list given no assignees filter (#31522) 2024-07-23 18:36:32 +00:00
stats Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00