gitea/routers/api/v1
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
..
activitypub Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
admin Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
misc Refactor markup render to fix various path problems (#34114) 2025-04-04 23:45:23 +08:00
notify Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
org Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00
packages Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
repo Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
settings Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
shared Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
swagger Artifacts download api for artifact actions v4 (#33510) 2025-02-16 08:32:54 +08:00
user Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
utils Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
api.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00