gitea/routers/web
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
..
admin Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
auth Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
devtest Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Improve issue & code search (#33860) 2025-03-13 11:07:48 +08:00
feed Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Refactor cache-control (#33861) 2025-03-13 07:04:50 +08:00
org Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
repo Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
shared Allow filtering issues by any assignee (#33343) 2025-03-21 04:25:36 +00:00
user Add new CLI flags to set name and scopes when creating a user with access token (#34080) 2025-04-02 22:00:54 +08:00
base.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
githttp.go Fix git client accessing renamed repo (#34034) 2025-03-28 07:28:58 +08:00
goget.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
home.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
webfinger.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00