gitea/modules/repository
Lunny Xiao 7a09bc904a
Avoid creating unnecessary temporary cat file sub process (#33942)
Extract from #33934 

In the same goroutine, we should reuse the exist cat file sub process
which exist in `git.Repository` to avoid creating a unnecessary
temporary subprocess.

This PR reuse the exist cate file writer and reader in
`getCommitFromBatchReader`.
It also move `prepareLatestCommitInfo` before creating dataRc which will
hold the writer so other git operation will create a temporary cat file
subprocess.
2025-04-04 16:19:19 -07:00
..
branch.go Trivial fixes (#33304) 2025-01-17 08:55:02 +00:00
branch_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
commits.go Refactor functions to reduce repopath expose (#33892) 2025-03-16 03:14:56 +00:00
commits_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
create.go Use filepath.Join instead of path.Join for file system file operations (#33978) 2025-03-24 14:50:28 -07:00
create_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
delete.go Even more `db.DefaultContext` refactor (#27352) 2023-10-03 10:30:41 +00:00
env.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
fork.go Fix various trivial problems (#32861) 2024-12-17 01:15:18 +00:00
fork_test.go Allow to fork repository into the same owner (#32819) 2024-12-14 09:39:05 +08:00
init.go Don't create duplicated functions for code repositories and wiki repositories (#33924) 2025-03-19 11:17:19 -07:00
init_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
license.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
license_test.go Fix repo avatar conflict (#32958) 2024-12-23 02:52:25 +00:00
main_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
push.go Improve ObjectFormat interface (#28496) 2023-12-19 07:20:47 +00:00
repo.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
repo_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
temp.go Use filepath.Join instead of path.Join for file system file operations (#33978) 2025-03-24 14:50:28 -07:00