diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2025-04-04 16:19:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-04 16:19:19 -0700 |
commit | 7a09bc904ae139c4a1c305d1032fdca1fd3cba89 (patch) | |
tree | 23657ce03a8e2334ce5049cc6338950202fc614c /options/license/CERN-OHL-1.2 | |
parent | 013b2686fe6d306c4fb800147207b099866683b9 (diff) | |
download | gitea-main.tar.gz gitea-main.zip |
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.
Diffstat (limited to 'options/license/CERN-OHL-1.2')
0 files changed, 0 insertions, 0 deletions