gitea/services/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
..
archiver Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
commitstatus
files Add `last_committer_date` and `last_author_date` for file contents API (#32921) 2025-04-02 21:47:31 -07:00
gitgraph Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
adopt.go Don't create duplicated functions for code repositories and wiki repositories (#33924) 2025-03-19 11:17:19 -07:00
adopt_test.go Use filepath.Join instead of path.Join for file system file operations (#33978) 2025-03-24 14:50:28 -07:00
avatar.go
avatar_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
branch.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
cache.go
check.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
collaboration.go
collaboration_test.go
commit.go
contributors_graph.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
contributors_graph_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
create.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
delete.go Add abstraction layer to delete repository from disk (#33879) 2025-03-14 18:38:55 +00:00
delete_test.go
fork.go Don't create duplicated functions for code repositories and wiki repositories (#33924) 2025-03-19 11:17:19 -07:00
fork_test.go
generate.go Add abstraction layer to check if the repository exists on disk (#33874) 2025-03-14 03:00:56 +00:00
generate_test.go
hooks.go Don't create duplicated functions for code repositories and wiki repositories (#33924) 2025-03-19 11:17:19 -07:00
init.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
lfs.go
lfs_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
license.go Only keep popular licenses (#33832) 2025-03-10 06:40:37 +08:00
license_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
main_test.go
merge_upstream.go Improve sync fork behavior (#33319) 2025-01-20 15:17:47 +08:00
migrate.go Refactor Branch struct in package modules/git (#33980) 2025-04-02 17:31:32 +00:00
push.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
repo_team.go
repo_team_test.go
repository.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
repository_test.go
setting.go Fix auto concurrency cancellation skips commit status updates (#33764) 2025-03-10 15:58:48 -07:00
template.go
transfer.go fix users being able bypass limits with repo transfers (#34031) 2025-03-31 20:19:32 +00:00
transfer_test.go fix users being able bypass limits with repo transfers (#34031) 2025-03-31 20:19:32 +00:00