0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 08:13:23 +01:00
gitea/modules/git/pipeline
Giteabot e536d18fe5
Refactor the usage of batch catfile (#31754) (#31889)
Backport #31754 by @lunny

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.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2024-08-21 01:55:14 +08:00
..
catfile.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
lfs_common.go Deduplicate lfs common code (#30704) 2024-04-26 02:53:30 +00:00
lfs_gogit.go Deduplicate lfs common code (#30704) 2024-04-26 02:53:30 +00:00
lfs_nogogit.go Refactor the usage of batch catfile (#31754) (#31889) 2024-08-21 01:55:14 +08:00
namerev.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
revlist.go Refactor and tidy-up the merge/update branch code (#22568) 2023-03-07 15:07:35 -05:00