0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-04-08 10:14:58 +02:00
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
..
2025-03-31 01:53:48 -04:00
2024-02-24 18:46:49 +00:00
2024-11-20 19:26:12 +00:00
2025-03-31 01:53:48 -04:00
2024-11-02 11:20:22 +00:00
2024-11-20 19:26:12 +00:00
2025-03-04 11:56:11 -08:00
2025-04-01 10:14:01 +00:00
2025-03-25 14:40:31 +00:00
2025-04-01 10:14:01 +00:00
2025-01-13 14:01:53 +08:00
2025-01-13 14:01:53 +08:00
2025-03-31 01:53:48 -04:00
2025-03-25 14:40:31 +00:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.