gitea/modules/git/pipeline
Lunny Xiao c03baab678
Refactor the usage of batch catfile ()
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.
..
catfile.go Implement FSFE REUSE for golang files ()
lfs_common.go Deduplicate lfs common code ()
lfs_gogit.go Deduplicate lfs common code ()
lfs_nogogit.go Refactor the usage of batch catfile ()
namerev.go Implement FSFE REUSE for golang files ()
revlist.go Refactor and tidy-up the merge/update branch code ()