Files
gitocean/modules/git
Lunny XiaoandEarl Warren bc64b6f004 Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987)
The latest commit cache is currently used only for listing tree files.
However, a cold start may take longer than directly invoking the Git
command. This PR addresses the issue of slow response times when
accessing raw files, improving performance in such scenarios.

```log
gitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow      GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload)
```

(cherry picked from commit f4ccbd38dca77b1515a08ddf927f4f20cf644d30)
2025-01-05 12:13:48 +00:00
..
2024-02-26 22:30:27 +01:00
2024-11-24 11:00:06 +00:00
2024-10-09 09:28:37 +00:00
2024-08-18 16:25:13 +02:00
2024-08-12 19:11:09 +02:00
2024-08-12 19:11:09 +02:00
2023-07-12 19:07:29 +02:00
2024-11-05 09:33:15 +01:00
2024-08-12 19:11:09 +02:00
2024-08-12 19:11:09 +02:00
2024-04-08 12:51:27 +02:00
2024-08-12 19:11:09 +02:00
2024-08-12 19:11:09 +02: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.