You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
5 months ago
..
bleve Refactor the usage of batch catfile (#31754) 5 months ago
elasticsearch Refactor the usage of batch catfile (#31754) 5 months ago
internal Refactor code_indexer to use an SearchOptions struct for PerformSearch (#29724) 11 months ago
git.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
indexer.go Fix tautological conditions (#30735) 9 months ago
indexer_test.go Refactor code_indexer to use an SearchOptions struct for PerformSearch (#29724) 11 months ago
search.go Render embedded code preview by permlink in markdown (#30234) 10 months ago