0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-28 04:54:21 +01:00
gitea/modules/indexer/code
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
..
bleve Refactor the usage of batch catfile (#31754) 2024-08-20 17:04:57 +00:00
elasticsearch Refactor the usage of batch catfile (#31754) 2024-08-20 17:04:57 +00:00
internal
git.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-04-29 08:47:56 +00:00
indexer.go Fix tautological conditions (#30735) 2024-04-30 14:34:40 +02:00
indexer_test.go
search.go Render embedded code preview by permlink in markdown (#30234) 2024-04-02 17:48:27 +00:00