0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-27 22:06:32 +01:00
gitea/modules/git/pipeline
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
..
catfile.go
lfs_common.go
lfs_gogit.go
lfs_nogogit.go Refactor the usage of batch catfile (#31754) 2024-08-20 17:04:57 +00:00
namerev.go
revlist.go